|
| 1 | +stm8flash |
| 2 | +========= |
| 3 | + |
| 4 | +This is a free and opensource software distributed under the terms of GNU General Public License v2. |
| 5 | + |
| 6 | +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. |
| 7 | + |
| 8 | + |
| 9 | +Synopsis |
| 10 | +-------- |
| 11 | + |
| 12 | +``` |
| 13 | +stm8flash -c <stlink|stlinkv2> -p <partname> [-s flash|eeprom|0x8000] [-r|-w|-v] <filename> |
| 14 | +``` |
| 15 | + |
| 16 | +Flash examples: |
| 17 | +```nohighlight |
| 18 | +./stm8flash -c stlink -p stm8s003f3 -w blinky.bin |
| 19 | +./stm8flash -c stlink -p stm8s003f3 -w blinky.ihx |
| 20 | +./stm8flash -c stlinkv2 -p stm8s003f3 -w blinky.ihx |
| 21 | +./stm8flash -c stlink -p stm8s105c6 -w blinky.bin |
| 22 | +./stm8flash -c stlinkv2 -p stm8l150 -w blinky.bin |
| 23 | +``` |
| 24 | + |
| 25 | +EEPROM examples: |
| 26 | +```nohighlight |
| 27 | +./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -r ee.bin |
| 28 | +./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -w ee.bin |
| 29 | +./stm8flash -c stlinkv2 -p stm8s003f3 -s eeprom -v ee.bin |
| 30 | +``` |
| 31 | + |
| 32 | +Support table |
| 33 | +------------- |
| 34 | + |
| 35 | + * ST-Link V1: flash/eeprom/opt |
| 36 | + * ST-Link V2: flash2/eeprom2/opt2 |
| 37 | + |
| 38 | +| MCU | flash | eeprom | opt | flash2 | eeprom2 | opt2 | |
| 39 | +|-------------|-------|--------|------|--------|---------|-------| |
| 40 | +| stlux???a | ? | ? | ? | ? | ? | ? | |
| 41 | +| stm8af526? | ? | ? | ? | ? | ? | ? | |
| 42 | +| stm8af528? | ? | ? | ? | 32 | ? | ? | |
| 43 | +| stm8af52a? | ? | ? | ? | ? | ? | ? | |
| 44 | +| stm8af6213 | ? | ? | ? | ? | ? | ? | |
| 45 | +| stm8af6223 | ? | ? | ? | ? | ? | ? | |
| 46 | +| stm8af6223a | ? | ? | ? | ? | ? | ? | |
| 47 | +| stm8af6226 | ? | ? | ? | ? | ? | ? | |
| 48 | +| stm8af624? | ? | ? | ? | ? | ? | ? | |
| 49 | +| stm8af6266 | ? | ? | ? | ? | ? | ? | |
| 50 | +| stm8af6268 | ? | ? | ? | ? | ? | ? | |
| 51 | +| stm8af6269 | ? | ? | ? | ? | ? | ? | |
| 52 | +| stm8af628? | ? | ? | ? | ? | ? | ? | |
| 53 | +| stm8af62a? | ? | ? | ? | ? | ? | ? | |
| 54 | +| stm8al313? | ? | ? | ? | ? | ? | ? | |
| 55 | +| stm8al314? | ? | ? | ? | ? | ? | ? | |
| 56 | +| stm8al316? | ? | ? | ? | ? | ? | ? | |
| 57 | +| stm8al3l4? | ? | ? | ? | ? | ? | ? | |
| 58 | +| stm8al3l6? | ? | ? | ? | ok | ? | ? | |
| 59 | +| stm8l051f3 | ok | ? | ? | ? | ? | ? | |
| 60 | +| stm8l052c6 | ok | ? | ? | ? | ? | ? | |
| 61 | +| stm8l052r8 | ok | ? | ? | ? | ? | ? | |
| 62 | +| stm8l101f1 | ? | no | ? | ? | no | ? | |
| 63 | +| stm8l101?2 | ? | no | ? | ? | no | ? | |
| 64 | +| stm8l101?3 | ? | no | ? | ok | no | ? | |
| 65 | +| stm8l151?2 | ? | ? | ? | ? | ? | ? | |
| 66 | +| stm8l151?3 | ? | ? | ? | ? | ? | ? | |
| 67 | +| stm8l151?4 | ? | ? | ? | ? | ? | ? | |
| 68 | +| stm8l151?6 | ? | ? | ? | ? | ? | ? | |
| 69 | +| stm8l151?8 | ? | ? | ? | ? | ? | ? | |
| 70 | +| stm8l152?4 | ? | ? | ? | ? | ? | ? | |
| 71 | +| stm8l152?6 | ok | FAIL | ? | ok | ok | ? | |
| 72 | +| stm8l152?8 | ? | ? | ? | ? | ? | ? | |
| 73 | +| stm8l162?8 | ? | ? | ? | ? | ? | ? | |
| 74 | +| stm8s003?3 | ok | FAIL | ? | ok | ok | ? | |
| 75 | +| stm8s005?6 | ok | ? | ok | ? | ? | ? | |
| 76 | +| stm8s007c8 | ? | ? | ? | ? | ? | ? | |
| 77 | +| stm8s103f2 | ? | ? | ? | ? | ? | ? | |
| 78 | +| stm8s103?3 | ? | ? | ? | ok | ? | ? | |
| 79 | +| stm8s105?4 | ok | FAIL | ? | ok | ok | ? | |
| 80 | +| stm8s105?6 | ok | ? | ? | ok | ? | ? | |
| 81 | +| stm8s207c8 | ? | ? | ? | ? | ? | ? | |
| 82 | +| stm8s207cb | ? | ? | ? | ? | ? | ? | |
| 83 | +| stm8s207k8 | ? | ? | ? | ? | ? | ? | |
| 84 | +| stm8s207m8 | ? | ? | ? | ? | ? | ? | |
| 85 | +| stm8s207mb | ? | ? | ? | ? | ? | ? | |
| 86 | +| stm8s207r8 | ? | ? | ? | ? | ? | ? | |
| 87 | +| stm8s207rb | ? | ? | ? | ? | ? | ? | |
| 88 | +| stm8s207s8 | ? | ? | ? | 32 | ? | ? | |
| 89 | +| stm8s207sb | ? | ? | ? | ? | ? | ? | |
| 90 | +| stm8s207?6 | ? | ? | ? | ? | ? | ? | |
| 91 | +| stm8s208c6 | ? | ? | ? | ok | ? | ? | |
| 92 | +| stm8s208s6 | ? | ? | ? | ? | ? | ? | |
| 93 | +| stm8s208?8 | ? | ? | ? | ? | ? | ? | |
| 94 | +| stm8s208?b | ? | ? | ? | 32 | ? | ? | |
| 95 | +| stm8s903?3 | ? | ? | ? | ? | ? | ? | |
| 96 | +| stm8splnb1 | ? | ? | ? | ? | ? | ? | |
| 97 | +| stm8tl5??4 | ? | no | ? | ? | no | ? | |
| 98 | +| stnrg???a | ? | ? | ? | ? | ? | ? | |
| 99 | + |
| 100 | +Legend: |
| 101 | + |
| 102 | + * `ok` - Fully supported. |
| 103 | + * `no` - Not supported. |
| 104 | + * `?` - Not tested. |
| 105 | + * `FÁIL` - Not working. Needs fix. |
| 106 | + * `32` - Lower 32K of flash works, upper doesn't. |
| 107 | + |
0 commit comments