AnsweredAssumed Answered

STLink Error

Question asked by currie.mitchell on Jul 30, 2015
Latest reply on Jul 30, 2015 by currie.mitchell
Untitled%2010.png
IMG_1663_.jpg
I have previously been developing ok using ST-Util for mac and an STM32F103 board ( i have several of these basic boards) but recently the device stopped being detected and does not work on the official ST-Link Utility on windows nor with the official ST-Lik V2 I just bought to try and diagnose it.
Here is my setup:
<img src="https://www.dropbox.com/s/jozu5urizevtq0q/IMG_1663.JPG?dl=0"/>
I do not have a full JTAG connector on board but that wasn't a problem even with a generic ST-LINK from china.
The wires are:
Red = 3.3V Pin 19
Black = GND Pin 20
White SW-TRACE Pin 13
Blue = SWCLK Pin 9
Green = SWDIO Pin 7
As Per Photo, this setup usually worked in the past even with the generic STLINK that had only 4 wires + NRST.

Following are some informations from my ST-Link on windows. I used to actually get specific device information before upgrading my ST-Link firmware such as device density and family. Now I get nothing, the log doesn't detect a high enough voltage which is weird, as usually it would spit out around 6v when attached to my macbook air, I'm not sure what the cause is here, but now it refuses to acknowledge a chip. I've tried two identical boards (which one still works with the software I flashed before just fine) and a F0 board too with the same results.

01.STLinkUSBDriver.dll loaded<BR>ST-Link/V2 device detected<BR>Target voltage 
02.detected: 0.000000<BR>Error getting target IDCODE: if SWD, check SWD 
03.connection<BR>Error (4) while initializing ST-Link in SWD mode<BR>ST-Link/V2 
04.device detected<BR>Target voltage detected: 1.561027<BR>Error getting target 
05.IDCODE: if SWD, check SWD connection<BR>Error (4) while initializing ST-Link in 
06.SWD mode<BR>ST-Link/V2 device detected<BR>Target voltage detected: 
07.1.559447<BR>Error getting target IDCODE: if SWD, check SWD connection<BR>Error 
08.(4) while initializing ST-Link in SWD mode<BR>ST-Link/V2 device 
09.detected<BR>Target voltage detected: 1.556287<BR>Error getting target IDCODE: if 
10.SWD, check SWD connection<BR>Error (4) while initializing ST-Link in SWD 
11.mode<BR>ST-Link/V2 device detected<BR>ST-Link/V2 device detected<BR>Target 
12.voltage detected: 1.559447<BR>Error getting target IDCODE: if SWD, check SWD 
13.connection<BR>Error (4) while initializing ST-Link in SWD mode<BR>ST-Link/V2 
14.device detected<BR>Target voltage detected: 1.556287<BR>Error getting target 
15.IDCODE: if SWD, check SWD connection<BR>Error (4) while initializing ST-Link in 
16.SWD mode<BR>ST-Link/V2 device detected<BR>Target voltage detected: 
17.1.557867<BR>Error getting target IDCODE: if SWD, check SWD connection<BR>Error 
18.(4) while initializing ST-Link in SWD mode<BR>ST-Link/V2 device 
19.detected<BR>Target voltage detected: 1.557867<BR>Error getting target IDCODE: if 
20.SWD, check SWD connection<BR>Error (4) while initializing ST-Link in SWD mode

Please help if you can, I'm really lost and stuck.


Outcomes