2023-10-12 12:15 AM
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?
2023-10-12 01:33 AM
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 :
You have the possibility to use nBoot0 bit instead of Boot0 pin in the option byte area :
The first time you have to use OBL_Launch to force the option byte reloading :
An important point to note is this :
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
2023-10-12 01:35 AM - edited 2023-10-12 01:36 AM
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