cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a boot location/type setting in STM32Cube for the STM32L031

SHudi.1
Associate II

New to STM32Cube and STM and my hardware seems to be trying to boot from the UART. I did not try to set this up but it seems to be happening. I simply want to boot to FLASH. Is there a way to define boot mode in STM32Cube I am missing?

4 REPLIES 4
TDK
Guru

By default, if BOOT0 is low, the device will boot to flash. Perhaps yours is floating or high.

There are also option bytes which will override the inputs on BOOT0/BOOT1.

If you feel a post has answered your question, please click "Accept as Solution".
SHudi.1
Associate II

Boot0 is tied low. What setting can cause the system to boot to UART instead of flash?

TDK
Guru

There is no "Boot to UART" mode. It can boot to the system bootloader, which can use the UART peripheral. Not sure if that's what you mean.

Look up "Boot configuration" in the reference manual. Specifically the nBOOT_SEL bit and similar.

If you feel a post has answered your question, please click "Accept as Solution".
SHudi.1
Associate II

The "boot configuration" should be only to flash if boot tied to 0. Hence my confusion.