Add target config for STM8S103 chip...
authorAnton V. Kirilchik <kosmonaffft@gmail.com>
Tue, 12 Mar 2019 20:11:39 +0000 (23:11 +0300)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 12 Mar 2020 09:41:41 +0000 (09:41 +0000)
Change-Id: I693e5b7933fc61956010a96be57ee6eb8abd3c31
Signed-off-by: Anton V. Kirilchik <kosmonaffft@gmail.com>
Reviewed-on: http://openocd.zylin.com/5422
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/stm8s103.cfg [new file with mode: 0644]

diff --git a/tcl/target/stm8s103.cfg b/tcl/target/stm8s103.cfg
new file mode 100644 (file)
index 0000000..714acf4
--- /dev/null
@@ -0,0 +1,13 @@
+#config script for STM8S103
+
+set FLASHEND 0x9FFF
+set EEPROMEND 0x427F
+set OPTIONEND 0x480A
+set BLOCKSIZE 0x40
+
+proc stm8_reset_rop {} {
+   mwb 0x4800 0x00
+   reset halt
+}
+
+source [find target/stm8s.cfg]