You are here

VESC 7.00 skips applying saved 125 kbit/s at startup

1 post / 0 new
ahanktcd
Offline
Last seen: 3 days 1 hour ago
VESC Free
Joined: 2024-01-12 06:31
Posts: 3
VESC 7.00 skips applying saved 125 kbit/s at startup

I reproduced this on a Flipsky FSESC 75100 Pro V2 running VESC firmware 7.00. After saving 125 kbit/s and rebooting, VESC Tool still read back 125 kbit/s over USB, but the ESC stopped communicating with the other nodes on the 125 kbit/s bus. Reapplying the bitrate at runtime restored communication.

In applications/app.c, the in-memory appconf starts zero-initialized. Since CAN_BAUD_125K is also 0, app_set_configuration() sees no bitrate change and skips programming it. The CAN controller then starts with its default 500 kbit/s timing.

I tested a small patch to comm/comm_can.c that loads the saved bitrate before the first canStart(). After flashing and rebooting, the bridge resumed receiving live RPM, voltage, and fault status, with no increase in CAN errors during a one-minute check.

The patch applies cleanly to upstream master. My hardware test was on the Flipsky with 7.00. Would you be open to a pull request for this, and would anyone with a Maxim 150 be able to confirm the fix on that board?