fix: Init TWAI before UART0 to prevent GPIO 43/44 pin conflict
UART0 init was claiming GPIO 43/44 before TWAI could use them for CAN. Swapping init order ensures TWAI gets GPIO 43/44 (where the SN65HVD230 transceiver is physically wired per Waveshare board design). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
06219afe69
commit
9b4a31aa66
@ -114,9 +114,9 @@ void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "ESP32-S3 BALANCE bd-66hx starting");
|
||||
|
||||
/* Init peripherals */
|
||||
orin_serial_init();
|
||||
/* Init CAN FIRST — TWAI must claim GPIO 43/44 before UART0 can grab them */
|
||||
vesc_can_init();
|
||||
orin_serial_init();
|
||||
|
||||
/* TX queue for outbound serial frames */
|
||||
s_orin_tx_q = xQueueCreate(ORIN_TX_QUEUE_DEPTH, sizeof(orin_tx_frame_t));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user