aboutsummaryrefslogtreecommitdiff
path: root/gdb-start
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-08-31 16:30:35 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-08-31 16:30:35 +0200
commit07090d14e0dafc3b5b564a339cd615c2d9864125 (patch)
tree6d20c9168c3f059381981ff4cc8cb9774db4041d /gdb-start
parent7a3326e8687cd8c86750a2db8348ab34c261b426 (diff)
downloadstm32f103-playground-07090d14e0dafc3b5b564a339cd615c2d9864125.tar.gz
stm32f103-playground-07090d14e0dafc3b5b564a339cd615c2d9864125.tar.bz2
stm32f103-playground-07090d14e0dafc3b5b564a339cd615c2d9864125.tar.xz
stm32f103-playground-07090d14e0dafc3b5b564a339cd615c2d9864125.zip
o A couple of stepper motor driver applications.
Diffstat (limited to 'gdb-start')
-rw-r--r--gdb-start31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb-start b/gdb-start
index de85932..fbd8789 100644
--- a/gdb-start
+++ b/gdb-start
@@ -1,5 +1,6 @@
target remote tcp:localhost:3333
monitor reset halt
+set remotetimeout 10
define flash_test1
shell cd build && make test1.elf
@@ -46,6 +47,36 @@ define flash_serial2
hbreak halt
end
+define flash_stepper1
+ shell cd build && make stepper1.elf
+
+ monitor arm semihosting enable
+ monitor reset halt
+
+ set confirm off
+ file build/apps/stepper1/stepper1.elf
+ load build/apps/stepper1/stepper1.elf
+ set confirm on
+
+ monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+ hbreak halt
+end
+
+define flash_stepper2
+ shell cd build && make stepper2.elf
+
+ monitor arm semihosting enable
+ monitor reset halt
+
+ set confirm off
+ file build/apps/stepper2/stepper2.elf
+ load build/apps/stepper2/stepper2.elf
+ set confirm on
+
+ monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+ hbreak halt
+end
+
define flash_os1
shell cd build && make os1.elf