aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton V. Kirilchik <kosmonaffft@gmail.com>2019-03-12 23:11:39 +0300
committerAntonio Borneo <borneo.antonio@gmail.com>2020-03-12 09:41:41 +0000
commit69f0105324f2fdcd0499ae07ada15d340762d061 (patch)
treed1fab3f002b17accd7844a5b01a3d55bb13e94d9
parenta99bf2ea9449d0e8120682feb2bedc398adab8b2 (diff)
Add target config for STM8S103 chip...
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>
-rw-r--r--tcl/target/stm8s103.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/tcl/target/stm8s103.cfg b/tcl/target/stm8s103.cfg
new file mode 100644
index 00000000..714acf48
--- /dev/null
+++ b/tcl/target/stm8s103.cfg
@@ -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]