ST-Link_V2_clone to SWD pinout

Post Reply
hennep
Posts: 10
Joined: Wed Jan 15, 2020 2:10 pm
Location: Netherlands

ST-Link_V2_clone to SWD pinout

Post by hennep »

I'm trying connect to a Nucleo STM32F072 board using the SWD interface.

I can program the board with the blink program but I need to disconnect the SWD cable after programming every time and connect a different cable (USB) to power the board to test the new program.
What I would like to know, is it a matter of wrongly connecting the 2 connectors or is it a bug in the Chinese clone programmer?
ST-LINK V2 to SWD.png
ST-LINK V2 to SWD.png (94.98 KiB) Viewed 5939 times
EDIT:
I am using the Arduino IDE to compile
The .ELF file is located in linux directory: /tmp/arduino_build_XXXXXX
STM32CubeProgrammer is used to program the device
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 26
Location: Prudnik, Poland

Re: ST-Link_V2_clone to SWD pinout

Post by GonzoG »

Just use ST-Link that's on Nucleo board.
hennep
Posts: 10
Joined: Wed Jan 15, 2020 2:10 pm
Location: Netherlands

Re: ST-Link_V2_clone to SWD pinout

Post by hennep »

Maybe I should have mentioned that the board is also a clone. :-)
STM32F07RBT.jpg
STM32F07RBT.jpg (85 KiB) Viewed 5927 times
I tried programming using the USB port a few times and noticed that it is not reliable. Since I am using a much shorter USB cable (about. 10", 25cm), performance has improved.

Using USB, I have to press the buttons boot0-down reset-down reset-up boot0-up before it accepts a new program.
I would like to find a way to program by just running a PC program instead of clicking buttons on the hardware. That is why I started to experiment with SWD.
Post Reply

Return to “STLink”