cancel
Showing results for 
Search instead for 
Did you mean: 

boot0 config issue without stm32cube programmer

Sanjay8344
Associate II

Using STM32 cube programmer I have flashed boot option using option bits and later I have flashed application and It's working fine without grounding boot0 Pin. Is there is any other way to make application start from system memory by configuring option bit in code? 

2 REPLIES 2
MikaelM
ST Employee

hello @Sanjay8344 ,

If I well understand your question, you want to boot from system memory. to do this you have to follow the configuration as below :

MikaelM_0-1697097407528.png

You have the possibility to use nBoot0 bit instead of Boot0 pin in the option byte area :

MikaelM_1-1697097693388.png

The first time you have to use OBL_Launch to force the option byte reloading :

MikaelM_2-1697097787926.png

An important point to note is this :

MikaelM_0-1697099545559.png

So I recommend you to read the reference manual of your device. Here below STM32l4x :
https://www.st.com/resource/en/reference_manual/rm0351-stm32l47xxx-stm32l48xxx-stm32l49xxx-and-stm32l4axxx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

best regards

Mikael

If you feel a post has answered your question, please click Accept as Solution.

People generally just do a control transfer to the code they want it to run. On the STM32s that need the memory remapping that can be done too

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