cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connecting ST-Link/V2 ISOL to ST-LINK Utility.

Connie Lim
Associate
Posted on June 19, 2018 at 22:47

I'm trying to connect ST-Link/V2 ISOL using SWD to a STM32F030R8T6 without success using Utility.  When I go to Target -> Settings, the serial number is shown. 

0690X0000060BjzQAE.png

However, after pressing the Refresh button, Here's how I connected the debugger to the chip, this happens after a few seconds pause: 

0690X0000060BkEQAU.png

The error log shows this:

cErrLog::SetLogTraceOn

STLinkUSBDriver.dll loaded

USB communication error (65657) after target cmd F1 80 00 00 00 00 00 00 00 00

ST-Link get version failure

USB communication error (65657) after target cmd F1 80 00 00 00 00 00 00 00 00

ST-Link get version failure

The detected STM32 firmware version (V0.J0) does not support the DAP read command.

USB communication error (65657) after target cmd F1 80 00 00 00 00 00 00 00 00

ST-Link get version failure

The detected STM32 firmware version (V0.J0) does not support the DAP read command.

W at 0xe0042004: 0x00000000

and the trace log shows this:

Target voltage detected: 2.855118

Error getting target IDCODE: if SWD, check SWD connection

Error (4) while initializing ST-Link in SWD mode

USB communication error (65567) after target cmd F2 45 00 00 FC 00 00 00 00 00

USB communication error (65657) after target cmd F1 80 00 00 00 00 00 00 00 00

ST-Link get version failure

USB communication error (65657) after target cmd F1 80 00 00 00 00 00 00 00 00

ST-Link get version failure

St-link                              Chip

Pin 1 - VDD                     VDD

Pin 7 - SWDIO                Pin 46 - SWDIO

Pin 9 - SWCLK               Pin 49 - SWCLK 

Pin 19 - GND                  GND

I tried adding a pull-up resistor to SWDIO, a pull-down resistor to SWCLK, and a resistor from NRST to GND on the chip.  I've installed the latest driver from the website from LINK-009 and LINK-007.  Can anyone help me with this?

#st-link-utility #st-link-v2 #swd #stm32f030rc
2 REPLIES 2
Posted on June 19, 2018 at 23:47

Does your software reprogram the debug pins or go into low power modes?

Does behaviour change when BOOT0 pulled High?

Has the design otherwise been fully validated?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Peter Allnutt
Associate III
Posted on June 20, 2018 at 09:13

I bought the ISOL ST-Link last week and spent ages trying to get it to talk to a

STM32F103

. This was not helped by reading the UM1075 manual. If one looks at page 13 there are pictures of both the ST-Link and the ribbon layout.Page 12 shows the pins and their connections. The cables supplied are all keyed so can't be plugged in the wrong way round.

The pinout on page 12 clearly shows pin 11 as NC (Not connected) yet on the 2 10 pin cables (SWIM cables) this appears to be used as GND.

I tried using dupont cables from the ISOL ST-Link to my dev board and got the same sort of errors you're reporting. My brainwave was to see if someone had used one on YouTube. I found a suitable video and the gentleman was connected to his target using dupont cables but from the supplied ribbon cable rather than directly to the programmer. Once I did that I lost the errors and could program/debug by STM32F103.

My wiring is

1 - VDD from target

7 - SWDIO

9 - SWCLK

11 - SWO

20 - GND