jtag/drivers/jlink: Use correct command errors
[openocd.git] / tcl / target / stm8l15xx8.cfg
blobe354827377026b14c4e38182c03897e0889a99cc
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Config script for STM8L151x8/STM8L152x8
4 # Supported Devices:
5 # STM8L151C8
6 # STM8L151M8
7 # STM8L151R8
8 # STM8L152C8
9 # STM8L152K8
10 # STM8L152M8
11 # STM8L152R8
13 # 4kB RAM
14 # Start 0x0000
15 # End   0x0fff
16 set WORKAREASIZE 4096
18 # 64kB Flash
19 set FLASHSTART  0x08000
20 set FLASHEND    0x17fff
22 # 2kB EEPROM
23 set EEPROMSTART 0x1000
24 set EEPROMEND   0x17ff
26 set OPTIONSTART 0x4800
27 set OPTIONEND   0x48ff
29 proc stm8_reset_rop {} {
30    mwb 0x4800 0xaa
31    mwb 0x4800 0xaa
32    reset halt
35 source [find target/stm8l.cfg]