Skip to main content
Explorer
October 4, 2023
Question

set up the bootloader in stm32f103vbt6tr

  • October 4, 2023
  • 2 replies
  • 1588 views

Hi,

"We are planning to design a custom board using the STM32F103VBT6TR microcontroller and are looking for guidance on how to set up the bootloader section in the schematics. Specifically, we want to enable the ability to reprogram the microcontroller using USB. Could you please provide instructions or guidelines on how to achieve this bootloader configuration for STM32F103VBT6TR?"

Regards,

Nitheesh

    This topic has been closed for replies.

    2 replies

    ST Employee
    October 4, 2023
    Explorer
    October 4, 2023

    Hi,

    Thanks for the information.

    That USB part is fine .but we have a confusion on what exactly happens between the boot0 and boot1

    Can you please explain that part ?

    why we use boot0 and boot1 ?

    Best regards,

    Nitheesh   

    Super User
    October 4, 2023

    The reference manual will explain how BOOT0 and BOOT1 functions.

    The stm32f103 doesn't have a USB bootloader, as AN2606 will point out.

    ST Employee
    October 4, 2023

    Hello @nitheesh123 :
    As said by @TDK the stm32f103 has not native system memory USB bootloader but I guess that that you want to develop your own USB bootloader ?
    In that case you can get inspired by the algorithm used by other mcus devices in AN2606.
    If you want to use ST bootloader from system memory, then you can not use USB with this device.

    Here below an extract from the reference manual :

    If you want to boot from system memory then BOOT1 shall be set to 0 dans BOOT0 to 1.

    MikaelM_0-1696430417651.png

    Please report to reference manual for all detailed information on boot configuration:

    https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

    Best regards

    Mikael