Random Reset

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

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

Tabulous
Posts: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Random Reset

Postby Tabulous » Fri Dec 01, 2017 5:38 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Random Reset

Postby Giovanni » Fri Dec 01, 2017 6:33 pm

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: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Random Reset

Postby Tabulous » Sat Dec 02, 2017 5:22 am

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

:-)


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 21 guests