Page 1 of 1

Random Reset

Posted: Fri Dec 01, 2017 5:38 pm
by Tabulous
Ive been getting random resets in my code, but it never gets caught in the exception handlers.........

What could cause this reset and by pass exception handlers......

Re: Random Reset

Posted: Fri Dec 01, 2017 6:33 pm
by Giovanni
A watchdog?

Try to run with the debugger attached putting breakpoints in the reset path. You need to understand if it is a reset or a random jump into the boot path.

Giovanni

Re: Random Reset

Posted: Sat Dec 02, 2017 5:22 am
by Tabulous
Giovanni wrote:A watchdog?

Try to run with the debugger attached putting breakpoints in the reset path. You need to understand if it is a reset or a random jump into the boot path.

Giovanni


Think i've tracked it down, its the window watchdog, inspecting the RCC to find the reset reason pointed to WWDG reset. I then traced this to a loop which was taking too long to execute, anything longer than 50ms and the WWDG will trigger......

:-)