Flashing the STM32F103 with a Raspberry Pi / Getting started with the STM32F103

preview_player
Показать описание
I describe how to burn a bootloader to the STM32F103 using the raspberry pi 3's inbuilt 3.3V serial port.

Burning a bootloader is required to make STM32s purchased from ebay or aliexpress programmable over the usb port.

You can find the steps presented in the video documented here:

Рекомендации по теме
Комментарии
Автор

fabulous !!
and so calm and "silent"->beautiful, thx a lot !! and keep it up !!

johnheinrich
Автор

is this possible without moving the jumper as I read in the wiki you may be able to use the gpio pins?
GPIO sequence:
- entry sequence: GPIO_3=low, GPIO_2=low, GPIO_2=high
- exit sequence: GPIO_3=high, GPIO_2=low, GPIO_2=high
stm32flash -R -i -3, -2, 2:3, -2, 2 /dev/ttyS0GPIO sequence:
Also once its got the arduino bootloader on, how can I use the PI to write a sketch to it in headless mode?

crazydiamonduk
Автор

nice, I have made it, and i wanna know how to upload my blinking sketch file to stm32 via this flash-tool?

jackyli
Автор

What you're calling Analog 9 and Analog 10 are actually PORTA, pin 9 and PORTA, pin 10. The analog pins are those numbered 3 to 11. They're labeled A0 through A7 and B0 and B1.

kiowablue
Автор

I highly recommend using the stlink-v2 for programming as it also provides debugging functionality. It is included on the stm32discovery boards and $3 clones are available.

PeterWorkman
Автор

I have Raspberry Pi 4B and latest Pi OS (based on Debian Bookworm). When I give this command I get error :(
ls: cannot access '/dev/serial*': No such file or directory

sail_fpv
Автор

Hi, thank you for the video. I followed it but with a raspberry 2b+ and i even got the final sucessfull mesage at the end of the video, but does not appear as a COM or serial port in my pc, what would be the next step?, by the way I've already configured the arduino ide with the stm32 boards. Thank you.

MrD
Автор

i actually have a rpi 2 and it doesnt' have blue tooth built in. could you comment how to do it a little different for pi 2 users?

marshallwheelis
Автор

Hi. Can i use this method for a Arduino nano?? i think that the bootloader is corrupt... can follow your tutorial to fix my arduino nano?? Thanks!!!

erdosain
Автор

Hi...Good video..
Do you know if it's possible to burn a bootloader in a samd21g with raspberry pi 3?
Thanks in advance

AcTrina
Автор

for anyone who had a chip erase problem, just run this "sudo stm32flash -k /dev/serial0"

charkyz
Автор

git no longer available (T _ T) where can i find those files?

juanquintero
Автор

Why is linux always so complicated ? Why can´t they just make a file that I can click on and the shit is installing ??? Why are the programmers always so lazy ? Why ?

tswoshman
welcome to shbcf.ru