jtag/drivers/jlink: Use correct command errors
[openocd.git] / tcl / target / stm8l15xx4.cfg
blob443819357b6d5d18024ef45dbea11aafc9bb5446
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Config script for STM8L151x4/STM8L152x4
4 # Supported Devices:
5 # STM8L151C4
6 # STM8L151G4
7 # STM8L151K4
8 # STM8L152C4
9 # STM8L152K4
11 # 2kB RAM
12 # Start 0x0000
13 # End   0x07ff
14 set WORKAREASIZE 2048
16 # 16kB Flash
17 set FLASHSTART  0x8000
18 set FLASHEND    0xbfff
20 # 1kB EEPROM
21 set EEPROMSTART 0x1000
22 set EEPROMEND   0x13ff
24 set OPTIONSTART 0x4800
25 set OPTIONEND   0x48ff
27 proc stm8_reset_rop {} {
28    mwb 0x4800 0xaa
29    mwb 0x4800 0xaa
30    reset halt
33 source [find target/stm8l.cfg]