vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
402 stars 182 forks source link

Add support for unlocking STM8S105K4 #110

Closed OlekMazur closed 6 years ago

OlekMazur commented 6 years ago

Hi,

I managed to unlock brand new STM8S105K4T6 cheap dev board with this change. The board has been shipped with LED blinking demo program. It has 8 MHz crystal and a LED connected to PE5.

$ ./stm8flash -c stlinkv2 -p stm8s105k4t6 -u
Determine OPT area
Due to its file extension (or lack thereof), "Workaround" is considered as RAW BINARY format!
Unlocked device. Option bytes reset to default state.
Bytes written: 15