cancel
Showing results for 
Search instead for 
Did you mean: 

set up the bootloader in stm32f103vbt6tr

nitheesh123
Associate

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

4 REPLIES 4
MikaelM
ST Employee

Hello @nitheesh123 ,

You can gathered information here : https://www.st.com/resource/en/application_note/an3156-usb-dfu-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf and here :https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

You can also have a look at nucleo schematics to have an idea of USB : https://www.st.com/en/evaluation-tools/nucleo-f103rb.html#cad-resources

Best regards,

Mikael

If you feel a post has answered your question, please click Accept as Solution.

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   

TDK
Guru

The reference manual will explain how BOOT0 and BOOT1 functions.

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

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

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

 

If you feel a post has answered your question, please click Accept as Solution.