Skip to main content
Peter Gibbons
Associate II
March 1, 2019
Solved

HAL_NVIC_SystemReset() gets stuck, same with IWDG.

  • March 1, 2019
  • 4 replies
  • 1820 views

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 :(

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

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

    4 replies

    Tesla DeLorean
    Guru
    March 1, 2019

    >>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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Peter Gibbons
    Associate II
    March 2, 2019

    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
    March 3, 2019

    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.

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    March 3, 2019

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

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