cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_NVIC_SystemReset() gets stuck, same with IWDG.

Peter Gibbons
Associate II

Hi. When I call HAL_NVIC_SystemReset(); or NVIC_SystemReset(); the system just freezes up instead of restarting. I figured forget about it and moved on to try out the watchdog, well the same thing happens. Watchdog is enabled and working fine, then I enter an infinite loop to try it and after it times out the whole chip gets stuck.

I don't know why this is :(

1 ACCEPTED SOLUTION

Accepted Solutions

Technically it is running the code in ROM rather than yours.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

4 REPLIES 4

>>I don't know why this is

You're actively driving NRST high externally with a push-pull driver?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Peter Gibbons
Associate II

I think what it was was BOOT0 was left floating on this particular board. I will verify and post my findings.

Peter Gibbons
Associate II

I can confirm that's what it was. If BOOT0/PH3 is tied high, then the system freezes up after the reset. If I tie it low, then the reset works perfectly fine, should have read the manual.

Technically it is running the code in ROM rather than yours.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..