2023-10-04 02:33 AM
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
2023-10-04 02:49 AM
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
2023-10-04 05:39 AM
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
2023-10-04 06:51 AM - edited 2023-10-04 06:51 AM
The reference manual will explain how BOOT0 and BOOT1 functions.
The stm32f103 doesn't have a USB bootloader, as AN2606 will point out.
2023-10-04 07:47 AM - edited 2023-10-05 12:58 AM
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.
Please report to reference manual for all detailed information on boot configuration:
Best regards
Mikael