Flashing STM32 with ST-LINK, JLINK and UART Bootloader, cross platform | VIDEO 44

preview_player
Показать описание
In this video I show you 4 ways to flash firmware onto STM32 using 3 different interfaces. Demonstration is on Fedora 34 but all tools are available on all platforms.

Code and configuration in the video:

Timestamps:
0:00 Introduction
1:56 Project introduction
3:13 ST-LINK: STM32CubeProgrammer (gui)
5:39 ST-LINK: ST-Flash (terminal)
11:16 JLINK (terminal)
14:50 JLINK automated download using Make
20:18 JLINK launch in vscode
21:06 ST-LINK: ST-Flash using Make launched with vscode
22:38 UART using STM32 built in bootloader
33:59 UART configuration using Make
36:19 UART launch with vscode

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

Programming and flashing STM32 from VSCode is a dream come true. Thank You!

TimmyWhiskers
Автор

Thank for section about programming using UART!
I just disabled SWD (I set all pins as inputs 🤦‍♂) on processor by mistake and UART is the only option to reprogram it. You are my savior! 😀

mzalewski
Автор

For Debian 12: If you installed and when executing "st-info --probe" you get "ERROR usb.c: Could not open USB device 0x0483:0x3748, access error." ... then execute (with elevated privileges) "udevadm trigger", then "udevadm control --reload-rules" ... this will reload udev rules installed with the apt package without requiring a reboot. These udev rules allow all regular users to interact with ST-LINK hardware debugger USB devices, including the "clone sticks".

Abdullu
Автор

Super thorough video! Thanks for this.

haydenbraxton
Автор

Inspiring, I just must test this, thanks a lot for the through demonstration. Cheers.

Cptnbond
Автор

Very useful video, thank you very much! It helped me very much!

aleksey_vomarba
Автор

It's a great tutorial, thank so much!

hieucdtspk
Автор

Thank you very much for this video! Did you make a video about how to flash stm32 by stm32flash utility over i2c?

Aldoita
Автор

If your on MacOS, just remove '-e' before 'si 1' and before 'r'

herantd
Автор

great video. am trying to fiddle with stm32s after pics and avrs. also looking for diy flasher coz i hve battery bms from 48v telecom bat boards.

tauraimirimi
Автор

Great tutorial, I was wondering if it was possible to upload the binaries over USB with something like maple bootloader installed on cheap bluepill boards?

jainvibhore
Автор

I think you should add sponsor feature to your channel) It will be fair to reward you for such a great job )

xxxzeranxxx
Автор

I have been helped a lot by several of your videos, thank you very much for your clear explanations. I now have completed my s/w development on an STM32F411RE and wish to use it standalone, that is, with no laptop connected.

Do I have the correct understanding that if I use the STM32CUBEProgrammer to program my flash memory using the project .bin file created by STM32CUBE IDE as you describe, that I can disconnect my laptop, connect a dedicated board power supply, and my code will run as intended? I am unclear, for example, if that project .bin file includes all of the setup actions such as interrupt vectors, clock and peripheral initialization. I understand that I will need to consult the manual to configure the jumpers to allow this to happen, but I can probably figure that out on my own. Thank you.

psnyder
Автор

What terminal prompt are you using?
And great video. Showing *how* and where the original info is in the manuals/docs was phenomenal.

JeffHykin
Автор

hi i have a sti7111 board but uart is block can we open uart with stm32 ?

VillageShorts
Автор

Those interfaces are often more expensive in Poland than the development board. Does neither of these method work with just a plain microusb cable?

Tomekkkk
Автор

I guess you do this for your living. Do you use cube mx in your professional projects ?

farukhalilagic
Автор

Thanks a lot for this video.
One question: in the uart example you show the use of the dtr and rts pins, but the uart interface on any stm only requires rx and tx, and dtr and rts only go to the ftdi chip or whatever other uart-usb bridge one has. Is my understanding of the circuit correct? Does this also mean that if I choose a usb-uart bridge that doesnt have those control signals I won't be able to flash the stm32? Thanks

xThirdOpsx
Автор

Hello, Thank you for your this tutorial.

Do you have the pinout of your stm32 with the ftdi chip? i'm putting DTR to boot0, RX => TX(uC), TX => RX(uC) what else am i missing?

Thanks

AdlaneHichemBRIKI
Автор

Hello Matej. Great tutorial. Can you please help me. I am programm the STM32G030 with st-flash (release 1.7.0) on raspberry pi4 and tool st-link-v2 (orginal ST or clone). Usaly it is not working, programm process interrupts because the tool find wrong processor id, or the programming result is OK "jolly good", but insite the processor is nothing written. what can be wrong? how i can "stable" programm the STM32 with raspberry pi 4 and st-link-v2? please help me thank you.

bozidarnemec