0

Watchdog triggers HardFault_Handler
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Watchdog triggers HardFault_Handler

by dheera on Tue Jan 12, 2021 10:35 pm

I'm trying to set up a watchdog on a FeatherS2 to reset the board and restart the code if the watchdog is not refreshed for a certain period of time.
Well that part works, except when it resets it goes into HardFault_Handler and drops into a REPL but I want it to re-run the code instead.

How do I fix that?

dheera
 
Posts: 16
Joined: Thu Feb 21, 2019 4:27 am

Re: Watchdog triggers HardFault_Handler

by dheera on Tue Jan 12, 2021 11:22 pm

I notice that even a simple

Code: Select all | TOGGLE FULL SIZE
import microcontroller
microcontroller.on_next_reset(microcontroller.RunMode.NORMAL)
microcontroller.reset()


will reset it into safe mode instead of normal mode :(

dheera
 
Posts: 16
Joined: Thu Feb 21, 2019 4:27 am

Re: Watchdog triggers HardFault_Handler

by tannewt on Wed Jan 13, 2021 12:39 pm

Please file an issue here if one hasn't been filed already: https://github.com/adafruit/circuitpython/issues

tannewt
 
Posts: 2034
Joined: Thu Oct 06, 2016 8:48 pm

Re: Watchdog triggers HardFault_Handler

by dheera on Thu Jan 14, 2021 2:14 pm


dheera
 
Posts: 16
Joined: Thu Feb 21, 2019 4:27 am

Please be positive and constructive with your questions and comments.