1
0
mirror of https://git.code.sf.net/p/openocd/code synced 2024-11-14 18:37:11 +00:00
openocd/tcl/target/stm8l15xx4.cfg
Dominik Wernberger 00cbf7bd31 Add/Correct STM8L15xx2/3/4/6/8 devices
Change-Id: I83fe1e50821ec15e1853aca96ebb32fe1ff5328f
Signed-off-by: Dominik Wernberger <dominik.wernberger@gmx.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/7690
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2023-06-02 20:59:36 +00:00

34 lines
515 B
INI

# SPDX-License-Identifier: GPL-2.0-or-later
# Config script for STM8L151x4/STM8L152x4
# Supported Devices:
# STM8L151C4
# STM8L151G4
# STM8L151K4
# STM8L152C4
# STM8L152K4
# 2kB RAM
# Start 0x0000
# End 0x07ff
set WORKAREASIZE 2048
# 16kB Flash
set FLASHSTART 0x8000
set FLASHEND 0xbfff
# 1kB EEPROM
set EEPROMSTART 0x1000
set EEPROMEND 0x13ff
set OPTIONSTART 0x4800
set OPTIONEND 0x48ff
proc stm8_reset_rop {} {
mwb 0x4800 0xaa
mwb 0x4800 0xaa
reset halt
}
source [find target/stm8l.cfg]