Closed argilo closed 10 months ago
The unlocking/flashing instructions worked for me, no batteries were necessary. I'm using some cheap ST-LINK v2 clone.
What comes to my mind:
I'm using a genuine ST-LINK v2. The manual is not entirely clear, but I don't believe it is intended to supply power to the target device.
I use this connection without batteries and it works fine. There are different versions. I also happened to find an ST-LinkV2 with the wrong pin descriptions, the ground was in the wrong place and I burned it.
The schemas seems to be identical, I guess the other should use the 3.3V ?
Only change the position of the pins for different ST-Link, always +5V
@argilo @pinkavaj @iz2fly
There are indeed different types of ST-LINK adapters and I wrote the instructions based on the small USB dongle type adapter I have. Some adapters might behave differently.
It is indeed possible to flash the sonde by powering it from batteries and NOT connecting the +3.3V from the ST-LINK adapter at all -> the only three wires needed with batteries are the GND, SWDIO and SWCLK.
Thanks for the clarification. I opened a pull request to update the README with that information: #48
The flashing instructions in the readme are:
These instructions didn't work for me. Instead I had to put the batteries in the sonde and press the power button to switch it on before unlocking & flashing would work. The ST-LINK v2 does not appear to supply power to the target device (but it could be that I connected it incorrectly).
If the instructions need updating, I'd be happy to open a pull request.