Flash B3606
Get tools
- st-link driver download from st.com
en.stsw-link009.zip - stm8 flasher download from st.com
en.flasher-stm8.zip - Firmware
https://github.com/frmaioli/b3603
Connect Cable
Use: 3.3V, SWIM, GND, RST
Flash
Config tools
ST toolset > ST Visual Programmer
HW: ST-LINK, MODE: SWIM, Device: STM8S103F3
Unlock protect
Tab Option byte
Select ROP = Read Out Protection OFF
Programe > Current Tab(Crtl + P)
Flash Rom
Select tab Programe memory
Programe > Current Tab(Crtl + P)
Serial command
Serial speed 38400, 8N1 https://github.com/frmaioli/b3603/blob/master/stm8/PROTOCOL.md
Set Voltage
VOLTAGE XXXXX
XXXXX is in mv (1v = 1000)
Set Current
CURRENT XXXXX
XXXXX is in mA (1A = 1000)
Turn on/off Output
OUTPUT X
0 = off, 1 = on
Query status
STATUS