Skip to content

Commit a19e18d

Browse files
committed
Mention how to unlock a STM8 using the Arduino IDE (fix tenbaht#85)
1 parent a35d914 commit a19e18d

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

docs/hardware/stm8blue.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,26 @@ perfect for breadboards).
2929
## Unlocking a write protected MCU
3030

3131
My breakout boards came preprogrammed with a blink program and with active
32-
write protection bits. For unlocking before first use:
32+
write protection bits. For unlocking before first use using the command
33+
line:
3334

3435
```bash
3536
stm8flash -cstlinkv2 -pstm8s103?3 -u
3637
```
3738

39+
The same can be done from the Arduino IDE by clicking on Tools->Burn
40+
Bootloader after selecting an STM8 based board and choosing the correct
41+
programmer type (ST-Link V2). The name of this menu entry is not
42+
self-explanatory, but I couldn't find any way to change it or to add another
43+
entry with a better name. (If you know how, please open an issue)
44+
45+
The required binary for `stm8flash` is included in the download of the
46+
automatic install. On Windows systems it can be found in the directory
47+
`AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05\win`.
48+
49+
A GUI alternative is the STVP tool by ST, but this involves installing
50+
another software package (see
51+
[issue#85](https://github.com/tenbaht/sduino/issues/85)).
3852

3953

4054
## Connection to the flash tool

0 commit comments

Comments
 (0)