vedderb / bldc

The VESC motor control firmware
2.14k stars 1.34k forks source link

controller stuck in reset loop until manual intervention #508

Open gowrav opened 2 years ago

gowrav commented 2 years ago

Occassionally when the controller turns on there will be continuous reset of microcontroller (VESC) with a beeping sound. This repeats until we physically move the motor rotor/ bike. When it finally turns on after multiple resets.. The terminal log fault shows it to be Watch dog reset... My best guess is https://github.com/vedderb/bldc/blob/734df61aab8baef75f3928e181d8b88841f088eb/motor/mcpwm_foc.c#L554

Can the Calibrate on Boot cause this...?

Because if we disable Calibration in Boot , , system turns on faster but the motor sometimes stutter to start., while is flawless when offsets get calibrated at boot.