cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader in STM32L0

gerardo
Associate II
Posted on February 19, 2015 at 10:57

Hi all,

Is it necesary to implement a additional code in my application to jump to the bootloader?

#magic-eight-ball
5 REPLIES 5
Posted on February 19, 2015 at 12:06

Signs Point to Yes

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
qwer.asdf
Senior
Posted on February 19, 2015 at 12:54

No if you can play with the PINs: you should make sure Boot0(Pin) = 1 and Boot1(Pin) = 0, then power it up, the bootloader will start executing. See

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/CD00167594.pdf

.

Posted on February 19, 2015 at 14:17

No if you can play with the PINs: you should make sure Boot0(Pin) = 1 and Boot1(Pin) = 0, then power it up, the bootloader will start executing. See

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/CD00167594.pdf

.

That's not the simplest way for it to happen.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 20, 2015 at 05:20

Bit of a blind port, but should work fine

Reboot_Loader PROC
EXPORT Reboot_Loader
LDR R0, =0x40021034 ; RCC_APB2ENR (+0x34)
LDR R1, =0x00000001 ; ENABLE SYSCFG CLOCK
STR R1, [R0, #0]
LDR R0, =0x40010000 ; SYSCFG_CFGR1 (+0x00)
LDR R1, =0x00000001 ; MAP ROM AT ZERO
STR R1, [R0, #0]
LDR R0, =0x1FF00000 ; ROM BASE (STM32L053)
LDR R1, [R0, #0] ; SP @ +0
MOV SP, R1
LDR R0, [R0, #4] ; PC @ +4
BX R0
ENDP ; sourcer32@gmail.com

Other similar threads

/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Help%20with%20application%20jump%20to%20system%20memory%20boot&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=771

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

I'm trying to do the same thing with L071 and my MCU jumps to the bootloader with no problem. But for some reason I can't make its i2c interface work. I can talk to the bootloader using i2c if I am entering it not from software. What am I missing?