Firmware Starter
Revised load admission limits — 2026-10-08
Configure continuous load admission ≤1 A/output, ≤4 A per bank, ≤8 A aggregate load; actual switch/support current is additional source/return burden. This replaces previous2 A/channel planning. Firmware cannot guarantee measured current limits because VNQ diagnostics are disabled/not MCU-readable. Use characterized external loads and independently coordinated branch/bank protection; reject unknown inrush/inductive loads pending qualification and retain SAFE/OFF/no-auto-retry. These ceilings are planning limits, not released PCB or silicon ratings. See revised-current-path-review and bring-up-plan.
Domain separation
Build and configure each ESP32-S3 independently. MCU A owns U9 and the I2C_SDA/I2C_SCL bus; MCU B uses only MCU_B_I2C_SDA/MCU_B_I2C_SCL. Never bridge the buses in firmware or external wiring.
Safe boot sequence
- Set GPIO8–GPIO11 low before output initialization.
- Keep lighting enable GPIO21 in the disabled state until GPIO4–GPIO7 are configured.
- Keep CAN standby GPIO18 high; configure TWAI, then drive low for normal mode.
- Configure GPIO12–GPIO15 as active-low trigger inputs with debounce.
- Start I2C at 100 kHz; probe the local U9 sensor only on MCU A.
- Enter a latched SAFE state after an operator-reported/application-supervised high-side fault; do not automatically retry. VNQ diagnostics are disabled/not MCU-readable, so there is no automatic hardware-fault-status GPIO to poll.
Fault recovery on this hardware
FaultRST is only pulled HIGH through R66/R70; firmware has no connected reset output. INPUT LOW commands OFF but is not a guaranteed latch clear. Set all affected-bank GPIO8–11 LOW, request external bank OFF, isolate/correct fault and cool. Controlled bench restart is logic-first/commands-LOW, bank-last/current-limited after full applicable power removal and discharge. Power-cycle latch clearing must be verified experimentally; no guaranteed off-time is established. If still latched, stop. Dedicated FaultRST LOW-pulse reset requires separately engineered access/fixture; do not invent a firmware pin or automatically retry. See bench-assembly-evidence and bring-up-plan.
Socket and spare GPIO assignments
Both MCUs use the same physical socket mapping recorded in esp32-socket-pin-map. GPIO39 and GPIO40 are exposed on each protected spare terminal. Keep GPIO43/GPIO44 available for UART/debug where practical.
Do not assign GPIO35–37, native USB GPIO19/20, strap GPIO0/GPIO3/GPIO45/GPIO46, or onboard-RGB GPIO48. Confirm the seller pinout by socket-to-board continuity before loading vehicle firmware.