From cf2b9cbf5c34c8f71cc84d62db7d12a671eceb55 Mon Sep 17 00:00:00 2001 From: Ake Rehnman Date: Tue, 24 Oct 2017 20:50:39 +0200 Subject: [PATCH] Added config files for stm8l152 stm8s003 and stm8s105 Change-Id: I26cc401aafac01e5aed8eac605488da5221ffdc2 Signed-off-by: Ake Rehnman Reviewed-on: http://openocd.zylin.com/4268 Tested-by: jenkins Reviewed-by: Paul Fertser --- tcl/target/stm8l152.cfg | 12 ++++++++++++ tcl/target/stm8s003.cfg | 11 +++++++++++ tcl/target/stm8s105.cfg | 8 ++++++++ 3 files changed, 31 insertions(+) create mode 100644 tcl/target/stm8l152.cfg create mode 100644 tcl/target/stm8s003.cfg create mode 100644 tcl/target/stm8s105.cfg diff --git a/tcl/target/stm8l152.cfg b/tcl/target/stm8l152.cfg new file mode 100644 index 00000000..8545a5ab --- /dev/null +++ b/tcl/target/stm8l152.cfg @@ -0,0 +1,12 @@ +#config script for STM8L152 + +set EEPROMSTART 0x1000 +set EEPROMEND 0x13ff + +proc stm8_reset_rop {} { + mwb 0x4800 0xaa + mwb 0x4800 0xaa + reset halt +} + +source [find target/stm8l.cfg] diff --git a/tcl/target/stm8s003.cfg b/tcl/target/stm8s003.cfg new file mode 100644 index 00000000..34997bec --- /dev/null +++ b/tcl/target/stm8s003.cfg @@ -0,0 +1,11 @@ +#config script for STM8S003 + +set FLASHEND 0x9FFF +set BLOCKSIZE 0x40 + +proc stm8_reset_rop {} { + mwb 0x4800 0x00 + reset halt +} + +source [find target/stm8s.cfg] diff --git a/tcl/target/stm8s105.cfg b/tcl/target/stm8s105.cfg new file mode 100644 index 00000000..820bcf75 --- /dev/null +++ b/tcl/target/stm8s105.cfg @@ -0,0 +1,8 @@ +#config script for STM8S105 + +proc stm8_reset_rop {} { + mwb 0x4800 0x00 + reset halt +} + +source [find target/stm8s.cfg] -- 2.39.5