Skip to main content
Visitor II
February 25, 2017
Solved

Hi what is boot0 in stm32

  • February 25, 2017
  • 1 reply
  • 59360 views
Posted on February 25, 2017 at 06:55

hi we are using STM32L152RET6.what is boot0 meant for and what should i connect

    This topic has been closed for replies.
    Best answer by RomainR.
    Posted on March 03, 2018 at 20:28

    Yes BOOT0 tied to 0V

    1 reply

    Visitor II
    February 25, 2017
    Posted on February 25, 2017 at 09:06

    First time the STM32 is powered up (and reset line is released), an internal bootcode (bootloader) will kick in first and check if the flash is blank. If the flash is blank, the bootloader will enable and listen for some peripherals (some UART/I2C/SPI/USB) to communicate with the external world as a mean to download and flashing the device.

    If the flash is not blank, the user code in the flash will start.

    If boot0 is tied high, the bootloader will assume the flash is blank.

    Another way to program the flash of the microcontroller is by debugger (ST Link) through SWD or JTAG.

    On STM8 MCU due to low pincount, the bootloader does not have a boot0 pin and instead the bootloader will be listening for communication for a single second after reset line is released.

    Super User
    February 25, 2017
    Posted on February 25, 2017 at 11:09

    First time the STM32 is powered up (and reset line is released), an internal bootcode (bootloader) will kick in first and check if the flash is blank. If the flash is blank, the bootloader will enable

    This does not apply universally to all STM32, only to the newer ones - in particular, in the 'L1 this is not implemented.

    For an exhaustively detailed list, see Table 2. Bootloader activation patterns in AN2606.

    JW