STM32 Bootloader
This post is all about installing STM32 Bootloader, i.e Programming STM32F103C8 Board using micro USB Port directly via Arduino IDE. STM32 Development Board or STM32F103C8 Microcontroller can be easily programmed using the Arduino IDE, only after installing the bootloader.
The previous tutorial link: Getting Started with STM32 Microcontroller : Blinking of LED
Programming STM32F103C8 Board using USB Port
In our previous tutorial, we learned the basics of the STM32 Development Board. We also programmed the STM32 development board to blink an LED. But there was one huge drawback with it because of the method we used to upload the code. We utilized an FTDI programmer/ USB-TTL Converter module for programming. We also had to toggle the boot 0 jumpers to boot 1 position while uploading and testing code. Also, the mini-USB port on the Development board was left totally unused.
The reason for doing that is, when the STM32 development board is bought it does not come with an Arduino ready boot loader. Hence the board will not be discovered by your computer when connected through the USB. But there exists a boot loader program developed by LeafLabs for Maple mini boards. This boot loader can be flashed into the STM32 once and thereafter we can directly use the USB port of the STM32 board to upload programs just like any other Arduino boards.
Components Required
The following are the components required for STM32 Bootloader Programming via USB. All the components can be purchased from Amazon.
- STM32F103C8 Board (Buy Online from Amazon)
- USB-TTL Converter (FTDI232) (Buy Online from Amazon)
- Connecting Wires
- Breadboard
- 1.5K Resistor (Exception)
Download Links
The connection between STM32 and USB-TTL for Uploading Bootloader
Full Video Tutorial for Uploading Bootloader:
Watch the full video tutorial below to learn about how to upload bootloader to STM32 using USB-TTL Converter. Once the bootloader is installed, you can simply upload any code to STM32 Board directly using mini USB Cable.
6 Comments
Hello, can you tell me, is there any compability issues with this model, or it fully supports arduino commands and libraries?
Not every library are supported. But most of the C commamd of arduino are compatible.
Can you give me a tutorial link or file for, “long distance control or, long distance monitor a high power device by using STM32” or, wireless control????? Please help me.
I have done exactly like your video. But when I plug in the USB from the UST to TTL module to my PC, nothing show up on the Port Name.
mara kha
When trying to upload a sketch via the USB port I get the following message:
A fatal error has been detected by the Java Runtime Environment:
#
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=3092, tid=0x0000000000002c48
Does anybody know a fix for this problem? Thanks a lot