cancel
Showing results for 
Search instead for 
Did you mean: 

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

ivashi
Associate
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
2 REPLIES 2
PBarr.5
Associate

Did you end up resolving this issue?

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
Up vote any posts that you find helpful, it shows what's working..