Work in progress...
Contact me @davide99
$ git clone https://github.com/davide99/stm8.git
$ cd stm8
$ sudo chmod +x make.py
$ ./make.py flash
- Done
ST-Link V2 clones usually come in two flavours, the ones with the metal enclosing and the ones by Baite in green plastic enclosing. They are both perfectly fine, despite the second one support also the JTAG protocol (besides SWIM and SWD)
- T_JRST
- 3V3
- 5V
- T_JTCK/T_SWCLK
- SWIM
- T_JTMS/T_SWDIO
- GND
- T_JTDO
- SWIM_RST
- T_JTDI
- RST
- SWDIO
- GND
- GND
- SWIM
- SWCLK
- 3V3
- 3V3
- 5V
- 5V
Signal | Baite ST-Link | Metal ST-Link |
---|---|---|
3V3 | 2 | 7 |
SWIM | 5 | 5 |
GND | 7 | 3 |
NRST | 9 | 1 |
This repository is CLion-ready. After importing the repository the Build & Flash
target is available. Just open the
main file you want to flash and hit the ►
button.