2017-03-30 01:51 AM
I am programming on nucleo L073RZ board.
My target is to jump from the main to the bootloader application without using BOOT0 and BNOOT1 pins.
To do that i look over the internet. By using the following video on the internet :
https://www.youtube.com/watch?v=cvKC-4tCRgw&t=2s
, i wrote the attached filed.The issue is that the MCU goes to default_handler and it is impossible to enter into the bootloader.
I don't know if something is missing in the code ?
Regards,
Florian
2017-03-30 02:28 PM
I wonder what is in main.h allowing you to compile this at all, as there is no VTOR in Cortex-M0 SCB, and the definition of SCB_Type in core_cm0.h reflects this.
OTOH, you need to remap the memory at 0x00000000 to System Flash , see SYSCFG_CFGR1.MEM_MODE and 2.5 Boot configuration in RM0091.
[EDIT] It's probably wiser to follow the instructions in ch.3.1 of AN2606. (An unneeded) disclaimer: I have no experience with this.
JW
2017-03-30 04:18 PM
The trick is to map the ROM at ZERO
https://community.st.com/0D50X00009XkfukSAB
https://community.st.com/0D50X00009Xkg1VSAR
https://community.st.com/0D50X00009XkgUkSAJ