Added config files for stm8l152 stm8s003 and stm8s105 68/4268/6
authorAke Rehnman <ake.rehnman@gmail.com>
Tue, 24 Oct 2017 18:50:39 +0000 (20:50 +0200)
committerPaul Fertser <fercerpav@gmail.com>
Fri, 12 Jan 2018 20:22:46 +0000 (20:22 +0000)
Change-Id: I26cc401aafac01e5aed8eac605488da5221ffdc2
Signed-off-by: Ake Rehnman <ake.rehnman@gmail.com>
Reviewed-on: http://openocd.zylin.com/4268
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
tcl/target/stm8l152.cfg [new file with mode: 0644]
tcl/target/stm8s003.cfg [new file with mode: 0644]
tcl/target/stm8s105.cfg [new file with mode: 0644]

diff --git a/tcl/target/stm8l152.cfg b/tcl/target/stm8l152.cfg
new file mode 100644 (file)
index 0000000..8545a5a
--- /dev/null
@@ -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 (file)
index 0000000..34997be
--- /dev/null
@@ -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 (file)
index 0000000..820bcf7
--- /dev/null
@@ -0,0 +1,8 @@
+#config script for STM8S105
+
+proc stm8_reset_rop {} {
+   mwb 0x4800 0x00
+   reset halt
+}
+
+source [find target/stm8s.cfg]