Skip to main content
ivashi
Visitor II
June 26, 2017
Question

HAL_NVIC_SystemReset() work in normal mode but not work in bootloaded mode

  • June 26, 2017
  • 2 replies
  • 1331 views
Posted on June 26, 2017 at 09:23

Hello. I have custom serial bootloader, which located in the beginning of user flash (sector0), and also user application, which burned by bootloader starting from sector 1 (slightly modified IAP example from ST). While in user app, I want to perform software reset to restart from my custom bootloader. The problem is, if I call HAL_NVIC_SystemReset(), my application just freeze. Also I tried IWDT reset with IWDG_Enable() with same result. Hardware reset from NRST pin working just fine. Also, if I call 

HAL_NVIC_SystemReset while in bootloader, reset working OK also. NRST pin connected to ground via 0.1 cap. No external pull-ups or anything. 

#stm32f410rb #stm32 #reset
This topic has been closed for replies.

2 replies

PBarr.5
Visitor II
March 5, 2019

Did you end up resolving this issue?

Tesla DeLorean
Guru
March 5, 2019

Make sure BOOT0 is pulled low to ensure your code is entered in FLASH, and not ROM.

Make sure NRST is NOT driven high by some other external 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..