vedderb / bldc

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

use NVIC_SystemReset in COMM_REBOOT command #499

Closed avlasic closed 2 years ago

avlasic commented 2 years ago

Reopening this as the previous one got closed.

Using watchdog reset to reboot system causes FAULT_CODE_BOOTING_FROM_WATCHDOG_RESET after startup. Instead use NVIC_SystemReset to reboot system. (both ways are doing a reset by pulling NRST pin low).

After commit 1309ece84be5f69968f7fc149d0f9e241613e082 it is now possible to reproduce this and get watchdog fault in "print faults" by pressing reboot in vesc tool.