2021-12-05 06:28 PM - last edited on 2024-11-27 06:39 AM by Andrew Neil
I'm using an ST-Link/V2-ISOL and installed the drivers (stsw-link009_v2.0.2) and ST-Link utility but I keep getting the "Target, detection failed" error in the Utility. Same result in the STM32 Cube Programmer. How can I fix this issue?
I am using 64-bit Windows 10 with the latest updates. When I plug the ST-Link into my computer it is detected in device manager as STM32 STLink so there is not trouble with detecting the device.
2021-12-05 06:49 PM
> Target, detection failed
Means it can't see a target board. This isn't an error about the ST-Link.
What board are you trying to connect to? How is it powered? How is it connected to the ST-Link?
2021-12-05 07:33 PM
Thank you for that, makes sense.
I'm connecting it to a Dragino temperature sensor, which is battery powered. The sensor is on and reporting data so it is not a power issue.
2021-12-05 08:04 PM
Is that even designed to be reprogrammed with an ST-Link? What is your intention here? And again, how are they connected?
2021-12-05 10:47 PM
Yes, it is only programmable via ST-Link.
My goal is to update its firmware.
I connected it according the pinout instructions given to me by the manufacturer (Pins 20, 15, 9, and 7 to their respective pins, per the instructions given b Dragino. See attached photo). Also connected pin 19 to pin 1.
2021-12-06 06:34 AM
Might want to try a lower clock speed. You can try to connect under reset as well. Connections look okay.