cancel
Showing results for 
Search instead for 
Did you mean: 

Jump to bootloader without using BOOT0 and BOOT1 pins

Florian HOUTTEMANE
Associate
Posted on March 30, 2017 at 10:51

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

2 REPLIES 2
Posted on March 30, 2017 at 23:28

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

Posted on March 31, 2017 at 01:18

The trick is to map the ROM at ZERO

https://community.st.com/0D50X00009XkfukSAB

https://community.st.com/0D50X00009Xkg1VSAR

https://community.st.com/0D50X00009XkgUkSAJ

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