STM32 Bootloader: Programming STM32F103C8 Board using USB Port

STM32 Bootloader Programming STM32F103C8 Board using USB Port (Last Updated On: February 27, 2019)

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 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.

Components Required

Following are the components required for STM32 Bootloader Programming via USB. All the components can be purchased from Amazzon.

  1. STM32F103C8 Board (Buy Online from Amazon)
  2. USB-TTL Converter (FTDI232) (Buy Online from Amazon)
  3. Connecting Wires
  4. Breadboard
  5. 1.5K Resistor (Exception)

Download Links

  1. STM32 Flash Loader : Download
  2. STM32 USB Mini Driver: Download
  3. STM32duino Bootloader:

Connection between STM32 and USB-TTL for Uploading Bootloader

STM32 and usb to ttl connection

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.

Recommended For You

About the Author: Alex Newton

Ask A Question .......