2015-07-29 05:43 PM
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_16JPG?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.
STLinkUSBDriver.dll loaded<
BR
>ST-Link/V2 device detected<
BR
>Target voltage
detected: 0.000000<
BR
>Error getting target IDCODE: if SWD, check SWD
connection<
BR
>Error (4) while initializing ST-Link in SWD mode<
BR
>ST-Link/V2
device detected<
BR
>Target voltage detected: 1.561027<
BR
>Error getting target
IDCODE: if SWD, check SWD connection<
BR
>Error (4) while initializing ST-Link in
SWD mode<
BR
>ST-Link/V2 device detected<
BR
>Target voltage detected:
1.559447<
BR
>Error getting target IDCODE: if SWD, check SWD connection<
BR
>Error
(4) while initializing ST-Link in SWD mode<
BR
>ST-Link/V2 device
detected<
BR
>Target voltage detected: 1.556287<
BR
>Error getting target IDCODE: if
SWD, check SWD connection<
BR
>Error (4) while initializing ST-Link in SWD
mode<
BR
>ST-Link/V2 device detected<
BR
>ST-Link/V2 device detected<
BR
>Target
voltage detected: 1.559447<
BR
>Error getting target IDCODE: if SWD, check SWD
connection<
BR
>Error (4) while initializing ST-Link in SWD mode<
BR
>ST-Link/V2
device detected<
BR
>Target voltage detected: 1.556287<
BR
>Error getting target
IDCODE: if SWD, check SWD connection<
BR
>Error (4) while initializing ST-Link in
SWD mode<
BR
>ST-Link/V2 device detected<
BR
>Target voltage detected:
1.557867<
BR
>Error getting target IDCODE: if SWD, check SWD connection<
BR
>Error
(4) while initializing ST-Link in SWD mode<
BR
>ST-Link/V2 device
detected<
BR
>Target voltage detected: 1.557867<
BR
>Error getting target IDCODE: if
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.
2015-07-29 06:48 PM
It's going to be hard to ''connect under reset'' without a NRST pin?
May be you can find the BOOT0 pin on your board, put a pull-up on that, restart it and try to erase the code running on the part currently. If this does allow you to erase the board, then you need to review your code, and why it might be breaking the debug interface. ie breaking it's GPIO pins or putting it in a low-power state.2015-07-29 08:07 PM
Thanks.
Well I usually leave the NRST pin off, ordinarily it doesn't seem to have a problem connecting. I've also tried connecting a brand new board as well but the results seem the same.Usually even the mac st-util program can identify the chip type regardless of its state.Currently connecting mode is set to ''normal'', I can change it to connect but I'm not sure where to hook up the NRST (it might be those headers, this board isn't well documented or labelled).I'm worried about the voltage (at the bottom), although it says this, the PWR light on the board does come on regardless, 1.5v is pretty low..