2017-08-18 06:52 AM
After I jump to the system memory location to make bootloader I cant jump back even if I press reset pin.How can I properly jump new code to run?(I am working on stm32f4 discovery)
#bootloader #stm32f4Solved! Go to Solution.
2017-08-18 10:11 AM
Reset should be agnostic, perhaps you should review more carefully the design around NRST and BOOT0 as it implemented on the board. Don't drive NRST high.
A reset would fail if you mass erased the part, or tried to turn off protection.
Use a 'halt debugger' to see where it is in the problematic condition. Have code in the Reset_Handler so you can check it arrived there, and perhaps died elsewhere.
2017-08-18 07:08 AM
Who/where would interrupts be re-enabled? not a reset condition
SYSCFG clock must be enabled to change mapping
Reset should re-enter your code based on BOOT0 pin being pulled-low. How are you sure it is not entering Reset_Handler?
Does the system loader use a watch-dog?
This is not my recommended method to enter the system loader.
2017-08-18 09:27 AM
No watch-dog.I cant use boot0 pin so I must enter system loader in code.I thought that everything would come back when I press the reset.What do I have to do to work like the previous?
2017-08-18 10:11 AM
Reset should be agnostic, perhaps you should review more carefully the design around NRST and BOOT0 as it implemented on the board. Don't drive NRST high.
A reset would fail if you mass erased the part, or tried to turn off protection.
Use a 'halt debugger' to see where it is in the problematic condition. Have code in the Reset_Handler so you can check it arrived there, and perhaps died elsewhere.