aboutsummaryrefslogtreecommitdiff
path: root/gdb-start
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-12-29 19:01:39 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-12-29 19:01:39 +0100
commitaae314fead54dab7b258f3a6c7ac1615833f9987 (patch)
treeae8eef88eae5d2031da89af3c16803b55987555e /gdb-start
parent47e728d34e64d2dc04736828111490dc8b0a8258 (diff)
downloadstm32f103-playground-aae314fead54dab7b258f3a6c7ac1615833f9987.tar.gz
stm32f103-playground-aae314fead54dab7b258f3a6c7ac1615833f9987.tar.bz2
stm32f103-playground-aae314fead54dab7b258f3a6c7ac1615833f9987.tar.xz
stm32f103-playground-aae314fead54dab7b258f3a6c7ac1615833f9987.zip
o Basic pre-emptive task switching OS.
Diffstat (limited to 'gdb-start')
-rw-r--r--gdb-start17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb-start b/gdb-start
index ead4d9b..5b63c73 100644
--- a/gdb-start
+++ b/gdb-start
@@ -45,4 +45,21 @@ define flash_serial2
hbreak halt
end
+define flash_os1
+ shell cd build && make os1.elf
+
+ monitor arm semihosting enable
+ monitor reset halt
+
+ set confirm off
+ file build/os1.elf
+ load build/os1.elf
+ set confirm on
+
+ set $r0=0, $r1=-1, $r2=-2, $r3=-3, $r4=-4, $r5=-5, $r6=-6, $r7=-7, $r8=-8, $r9=-9, $r10=-10, $r11=-11, $r12=-12
+ monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+
+ echo Run this if first run:\n hbreak halt\n hbreak job1\n hbreak PendSV_Handler\n
+end
+
monitor reset halt