2024-01-25 03:38 PM
Before ST started bricking counterfeit st link V2 units, I was able to program my board without issue. I bought a confirmed genuine ST Link V2 from RS components and connected it exactly as shown, but it never connects to the target and all I can get is this output or an error which says no target found. I managed to upgrade the ST link firmware so it is connecting to the PC normally.
23:34:26:388 : STLinkUSBDriver.dll loaded
23:34:26:394 : STLinkUSBDriver.dll loaded
23:34:26:394 : ST-LINK SN : 37FF6C0630484B3838261443
23:34:26:394 : ST-LINK FW : V2J38S7
23:34:26:394 : Board : --
23:34:26:394 : Voltage : 1.05V
23:34:26:395 : Error: ST-LINK error (DEV_TARGET_CMD_ERR)
23:34:26:410 : Disconnected
Solved! Go to Solution.
2024-01-25 04:18 PM
VCAP both need 2u2F
You also need to connect VTarget to the 3.3V supply for the authentic ST-LINK/V2 so that the voltage reads closer to 3V rather than 1V
2024-01-25 03:48 PM
Your setup is incomplete. E.g. VCAP capacitors are missing and so the core will not work. Try first to connect to a known working device, than correct you schematics , the try again.
2024-01-25 04:18 PM
VCAP both need 2u2F
You also need to connect VTarget to the 3.3V supply for the authentic ST-LINK/V2 so that the voltage reads closer to 3V rather than 1V
2024-02-04 01:58 PM
I forgot to mention that I have omitted all the power supply components from the schematic for the sake of simplicity. The board worked well on the fake ST link before ST started breaking them.
2024-02-04 02:18 PM
Your suggestion of connecting VTarget to 3.3v solved the problem. Thank you!