Debug the STM32 (BluePill) using SWD and ST-LINK V2 in STM32CubeIDE

preview_player
Показать описание
In this short tutorial I will show you how to debug your STM32 board using SWD. This is made using STM32CubeIDE.

If you have any questions I am open to answering them in the comment section.
Рекомендации по теме
Комментарии
Автор

There was a mistake in the video regarding the jumper wires... Its better if you put the two BOOT pins at "zero" since the BOOT0 is used to tell the STM32 to run the code from the flash and it needs to be put on GND.

marcotrevisanmota
Автор

Thanks for the video. Kept me from pulling my hair out. I live in California and you speak English better than most people I know. Don’t apologize for your accent. Thanks again

TheElectronicDilettante
Автор

it was a good video the debugger setup was too fast for a 77 yr old guy must look at it over but i thnk it is a great help to me thank you

robertjohnson
Автор

Thank you very much, I was very close to throw to the trash my board before your video.

tejonBiker
Автор

I am in the dark on all this it was a good start

robertjohnson
Автор

If you are saying "i" by itself than you pronounce it as "eye". Otherwise it will sound like you are saying the letter "e" instead. Thanks for making your content available in English.

ivolol
Автор

Can you show printf outputs with this setup?
Could you create a tutorial of how to print out through STLink?

theorcnator
Автор

Hello Marco, thanks You very much for this nice video. I would like to make a Wave table synthesizer with a Black Pill (STM32F403CCU6) and an external DAC (PCM5102A), could you please public a video of such a configuration using I2S and DMA?

giovannimaineri
Автор

I am unable to debug using STM32CubeIDE. I have both a clone ST-Link V2 and genuine ST-Link V2. I can program using STM32Programmer but when trying to run or debug in STM3CubeIDE it fails on either with the message "Error in final launch sequence: Failed to start GDB server".

undercrackers
Автор

I've got Error in initializing ST-LINK device! I've got STM32CubeIDE, linux Ubuntu, stlink installed. STM32 (BluePill) via SWD. SWD is enebled, HSE selected as you've done. Any idea ?

natsagnyamnamkhai
Автор

Error in final launch sequence:

Failed to start GDB server
Failed to start GDB server
Error in initializing ST-LINK device.
Reason: (4) No device found on target.

That is what I've got. st-link upgrade done ok. but it still does not work. Any idea why ? I checked +3V3, GND, SWDIO, SWCLK pins OK.
After the usb port is plugged +5V ok checked. It looks like the hardware OK.

natsagnyamnamkhai
Автор

Your variable "i" is pronounced aye you are saying e sounding like variable "e"😲 other than that your English is not bad and the video is vary intuitive, you are probably better at coding than me as well, although that does not take much. Hence why I am watching your video, Thanks!

AndyNicholson-pg
Автор

Ciao. Ti chiedo gia scusa a priori se la domanda non ha senso, ma non sono esperto in materia.
Ho un problema con una autoradio android che sembra andare in loop continuo con il bootload a causa di una procedura fash rom andata male. A scehrmo appare sempre la scritta iniziale di avvio, ma olrte a quello non va. Non riesco a portare il sistema in recovery mode. E' possibile che il problema sia nel chip STM32F0 da riprogrammare? E se si, che file ( estensione e dimensione) devo caricare con ST-LINK? Se sono completamente fuori strada dimmelo, e ti cheido di nuovo scusa per eventuali sciocchezze scritte. Grazie

fbolo