Skip to main content
Visitor II
September 25, 2020
Question

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

  • September 25, 2020
  • 4 replies
  • 1134 views

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?

    This topic has been closed for replies.

    4 replies

    Super User
    September 25, 2020

    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.

    SHudi.1Author
    Visitor II
    September 28, 2020

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

    Super User
    September 28, 2020

    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.

    SHudi.1Author
    Visitor II
    September 28, 2020

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