As always your videos are the best technical ones for the STM32 uC line. Thank you for the effort you put in them. It is much appreciated! Here are some important point in the video: 5:06 need to connect to NRST of stm32 uC ! 6:06 JTCK == SWCLK ; JTMS == SWDIO 6:18 NRST is also important! 6:22 SWO - is for uC M3,M4 and above 6:32 NRST - is very important 6:57 stm32 reset circuit 8:09 NRST pin must go high
Thank you so much for this video. I was trying to make printf work via debug port on Blue Pill board. I had used printf successfully on Nucleo and Discovery boards so I was wondering what I am doing wrong with the blue pill. All this while I was assuming that printf output is sent over the same lines as those used for programming and debugging (code stepping). So I had connected only SWDIO and SWCLK (other than GND and Vsense). Blue pill only has these lines on the 4 pin header so that kind of reinforced my assumption. Only after watching this video did I realize that I need to connect SWO or PB3 on the blue pill corresponding pin on to ST-Link. I did that and BAM, it started working. I can now go out and smell some fresh air. Thank you.
Great video! I wonder if you could make a new video about setting up a simple GPIO program using printf command and watching the output on the SWV console on of the Truestudio IDE debugger using the bluepill stm32f103c8 and the stlinkV2 (chinese one). I'm a bit confuse as well on how to and which pins to connect. I've been struggling for weeks trying to make it work with no sucess... Many thanks in advance.
@@Weblearning1 No I'm trying to make a simple code like printf " hello world" to have it display on the SWV console in the Truestudio debugger using a bluepill board and the stlinkV2 dongle. The communication goes to SWD signals I guess.
I never used the blue pill. Communication like printf are directed to the uart. Only in IAR ( that I know ) you can printf using the SWO pin. I don't think this is possible in Truestudio.
@@Weblearning1 Yes I know this is possible but I meat some problems like instead of having "hello world" I got only few weird codes. So the blog on Atollic website doesn"t really explain how to do that with the bluepill but I saw from other source that I have to rewire the SWO on my chinese stlink-v2 and it's what i've done but something is missing I guess...
The best explanation about possible problems while programming/debugging SWIM / SWD Microcontrollers. Tks
As always your videos are the best technical ones for the STM32 uC line.
Thank you for the effort you put in them. It is much appreciated!
Here are some important point in the video:
5:06 need to connect to NRST of stm32 uC !
6:06 JTCK == SWCLK ; JTMS == SWDIO
6:18 NRST is also important!
6:22 SWO - is for uC M3,M4 and above
6:32 NRST - is very important
6:57 stm32 reset circuit
8:09 NRST pin must go high
Thank you so much for this video. I was trying to make printf work via debug port on Blue Pill board. I had used printf successfully on Nucleo and Discovery boards so I was wondering what I am doing wrong with the blue pill. All this while I was assuming that printf output is sent over the same lines as those used for programming and debugging (code stepping). So I had connected only SWDIO and SWCLK (other than GND and Vsense). Blue pill only has these lines on the 4 pin header so that kind of reinforced my assumption. Only after watching this video did I realize that I need to connect SWO or PB3 on the blue pill corresponding pin on to ST-Link. I did that and BAM, it started working. I can now go out and smell some fresh air. Thank you.
Good, verry good!!! Thanks!
can u help me with ULINK2/Me utility ?
afaik reset mode requires you to actually have the reset pin connected to the ST link
Not always. In some settings, you can connect to the STM32 without the NRST. But its good to have it when you start.
Im facing problem, when I click on connect a window pops up informing that change to rest mode
Did you try to connect using ST link utility?
Great video! I wonder if you could make a new video about setting up a simple GPIO program using printf command and watching the output on the SWV console on of the Truestudio IDE debugger using the bluepill stm32f103c8 and the stlinkV2 (chinese one). I'm a bit confuse as well on how to and which pins to connect. I've been struggling for weeks trying to make it work with no sucess... Many thanks in advance.
So you want to print to the uart and also have a GPIO? If so, have a look at the 2 videos I made on each topic.
@@Weblearning1 No I'm trying to make a simple code like printf " hello world" to have it display on the SWV console in the Truestudio debugger using a bluepill board and the stlinkV2 dongle. The communication goes to SWD signals I guess.
I never used the blue pill. Communication like printf are directed to the uart. Only in IAR ( that I know ) you can printf using the SWO pin. I don't think this is possible in Truestudio.
@@Weblearning1 Yes I know this is possible but I meat some problems like instead of having "hello world" I got only few weird codes. So the blog on Atollic website doesn"t really explain how to do that with the bluepill but I saw from other source that I have to rewire the SWO on my chinese stlink-v2 and it's what i've done but something is missing I guess...
It might be that you are trying to send to fast. Without OSC, max speed is between 9600 -52000.