Skip to content
daiyokoPublic
forked from vdudouyt/stm8flash

About

program your stm8 devices with SWIM/stlinkv(1,2)

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

stm8flash

This is a free and opensource software distributed under the terms of GNU General Public License v2.

It also seems to be the only program that's able to communicate through the SWIM interface of ST-LINKs under Linux as for March, 2014.

Synopsis

stm8flash -c <stlink|stlinkv2> -p <partname> [-s flash|eeprom|0x8000] [-r|-w|-v] <filename>

Flash samples:

./stm8flash -c stlink -p stm8s003f3 -w blinky.bin
./stm8flash -c stlink -p stm8s003f3 -w blinky.ihx
./stm8flash -c stlinkv2 -p stm8s003f3 -w blinky.ihx
./stm8flash -c stlink -p stm8s105c6 -w blinky.bin
./stm8flash -c stlinkv2 -p stm8l150 -w blinky.bin

EEPROM samples:

./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -r ee.bin
./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -w ee.bin
./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -v ee.bin

Support table

  • ST-Link V1: flash/eeprom/opt
  • ST-Link V2: flash2/eeprom2/opt2
MCU flash eeprom opt flash2 eeprom2 opt2
stm8l051f3 ok ? ? ? ? ?
stm8l150 ok FAIL ? ok ok ?
stm8s003?3 ok FAIL ? ok ok ?
stm8s005?6 ok ? ok ? ? ?
stm8s007c8 ? ? ? ? ? ?
stm8s103f2 ? ? ? ? ? ?
stm8s103?3 ? ? ? ? ? ?
stm8s105?4 ok FAIL ? ok ok ?
stm8s105?6 ? ? ? ok ? ?
stm8s207c8 ? ? ? ? ? ?
stm8s207cb ? ? ? ? ? ?
stm8s207k8 ? ? ? ? ? ?
stm8s207m8 ? ? ? ? ? ?
stm8s207mb ? ? ? ? ? ?
stm8s207r8 ? ? ? ? ? ?
stm8s207rb ? ? ? ? ? ?
stm8s207s8 ? ? ? ? ? ?
stm8s207sb ? ? ? ? ? ?
stm8s207?6 ? ? ? ? ? ?
stm8s208c6 ? ? ? ok ? ?
stm8s208s6 ? ? ? ? ? ?
stm8s208?8 ? ? ? ? ? ?
stm8s208?b ? ? ? ? ? ?
stm8s903?3 ? ? ? ? ? ?
stm8splnb1 ? ? ? ? ? ?

Legend:

  • ok - Fully supported.
  • no - Not supported now.
  • ? - Not tested.
  • FÁIL - Not working. Needs fix.

About

program your stm8 devices with SWIM/stlinkv(1,2)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages