Table of Contents
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 bootloader.
The previous tutorial link: Getting Started with STM32 Microcontroller : Blinking of LED
Programming STM32F103C8 Board using USB Port
In our previous tutorial we learnt the basics of the STM32 Development Board. We also programmed 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 a FTDI programmer/ USB-TTL Converter module for programming. We also had to toggle the boot 0 jumper to boot 1 position while uploading and testing a 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.
Following are the components required for STM32 Bootloader Programming via USB. All the components can be purchased from Amazzon.
- STM32F103C8 Board (Buy Online from Amazon)
- USB-TTL Converter (FTDI232) (Buy Online from Amazon)
- Connecting Wires
- 1.5K Resistor (Exception)
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.