Program STM32 F103 with Arduino | STM32 Programming via USB Port - STM32 Bootloader

preview_player
Показать описание
#STM32 #Arduino
Today, I will show you how to Program STM32 F103 with Arduino by using flashing STM32 bootloader to TM32 Programming via USB Port. I am using STM32F1 development board. It is also known as “Blue Pill” board. Blue Pill has powerful 32-bit STM32F103C8T6 ARM processor with the clock speed of 72MHz and it has 20KB of RAM and 64KB of flash memory. That's why it is much powerful than Arduino.

The mini-USB port on the Development board is almost unused. The reason for this is, when you buy the STM32 development board, it does not come with an Arduino bootloader, that's why the board will not be discovered by the computer when you connect it via the USB. To program the STM32 Blue Pill board directly via USB port, First you need to flash the Maple boot loader into the STM32 MCU. for this you need a USB to TTL module. such as FTDI Breakout Board from Sparkfun. I am using CH340G USB to TTL module in this project to flash bootloader. This module required only the single time. After flashing the boot loader to MCU, you will be able to connect the STM32 board via USB

Note: The boot 0 jumper is set to programming mode while uploading the boot loader. also Set back the boot 0 jumper is set to operating mode while uploading the code.

--------------------------------------------------------------------------------------------------------------------
Useful Video Links
--------------------------------------------------------------------------------------------------------------------
SiM800L Home Automation using Arduino IR Remote Control Relay

ESP32 Relay Control With Google Sheets

--------------------------------------------------------------------------------------------------------------------
Social Media Links
--------------------------------------------------------------------------------------------------------------------
GitHub:
YouTube:

--------------------------------------------------------------------------------------------------------------------
Download Code
--------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------------
Disclaimer
--------------------------------------------------------------------------------------------------------------------
Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
Рекомендации по теме
Комментарии
Автор

How to program since the pins are different can i program like arduino

njan
Автор

Hi friend, is possible load arduino bootload in a 1n-20mr chinese plc, ? That plc uses stm32f103 microcontroller.

RuiSjm
Автор

Sir My stm 32 controller not recognised by the PC after flashing it.

abhishekpandey
Автор

doest this work for any programs or only for PIN 13

kvsprt_prep
Автор

Hello ...
I make stm32f1 based board... When I got this board I programmed through STlink first it showing mapple through USB type B... But for next time I upload code the STM32 not shown on STutility, but serial is ongoing...it's shown mapple on serial

ajayshokal
Автор

After bootloading stmE us wasnot recognisablebon laptop. Even as I plug the module USB message comming.

mvssarma
Автор

Thank you Thank you Thank you

Thank you Thank you Thank you

Thank you Thank you Thank you

Thank you Thank you Thank you

BarakAllahu feek

aburab
Автор

Nice video sir, but I got a problem is "cannot open the com port, the port may be used by another application" when I did the first step, and I didn't open any program except the flash loader demonstration when I did this. You can tell me what should I do? Thanks for reading, hope you are back.

thienlephamvinh
Автор

does the serial monitor work in this case?

rocketman
Автор

Doesn't work on windows 11. any sloution?

usmanhaider
Автор

Hi all, I've ran into a problem at 5:00. Before this I followed every steps and worked just fine. But as I'm searching for the COM port as the video suggested, it showed nothing. Here is the list of what I have done so far:
- follow the video until stuck 5:00
- put the 2 yellow jumper on the board in all different ways. Only worked when setting both jumper to 0
- plug the Arduino Nano in the same USB port on my laptop.
The Arduino IDE can detect the board and show up on the port list as soon as I plugged that in.
- re-install the install_driver.bat file
- install the STM_COM_driver.bat file

If you know how to fix this, please let me know.
I will add the solution to this comment once the problem is solved.

MinhNg
Автор

Make some tutorial for lvgl and rotary please

andrisetianabrata
Автор

I’ll just stick with arduino/atmega. This process is not worth the convolution involved.

chibuzordesmond