aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcl/target/stm8l152.cfg12
-rw-r--r--tcl/target/stm8s003.cfg11
-rw-r--r--tcl/target/stm8s105.cfg8
3 files changed, 31 insertions, 0 deletions
diff --git a/tcl/target/stm8l152.cfg b/tcl/target/stm8l152.cfg
new file mode 100644
index 0000000..8545a5a
--- /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 0000000..34997be
--- /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 0000000..820bcf7
--- /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]