blob: 5443dc7b9eefbec7c66c8b361e265868b1f5b2a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
https://lujji.github.io/blog/stlink-clone-trace/
I couldn’t find schematics for a stand-alone programmer
so I assumed it would be identical to the one present on Discovery board.
PA10 is used for SWO so the next step would be pretty straight-forward.
I’ve cut the trace from 5V pin right after the via and soldered some bodge-wire to PA10 (pin 31).
I also added a 22ohm resistor in case something goes horribly wrong.
(you can use something like 100 ohms instead.
This resistor helps in two scenarios: when the pin is connected directly to the power rails
or when clamping diodes start to conduct.
As a matter of fact, 22 ohms is not enough to satisfy the maximum rating of 25mA per pin.)
Initially I wanted to use SWIM pin since I don’t care about STM8
and it would only require desoldering one resistor without cutting any traces,
but the 5V pin was easier to reach.
|