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......
Random Reset
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Random Reset
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
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
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......