Random Reset

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Random Reset

Post 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......
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Random Reset

Post 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
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Random Reset

Post 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......

:-)
Post Reply