aboutsummaryrefslogtreecommitdiff
path: root/gdb-start
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-12-20 15:10:55 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-12-20 15:10:55 +0100
commit137489b6cd7e03031b0acb5d3abab4603decde04 (patch)
tree05193b73a0c6dd264af13b2b1a83eccf6a92e182 /gdb-start
parent6d27f1755b782340d1c55c3f8f01a193514a3607 (diff)
downloadstm32f103-playground-137489b6cd7e03031b0acb5d3abab4603decde04.tar.gz
stm32f103-playground-137489b6cd7e03031b0acb5d3abab4603decde04.tar.bz2
stm32f103-playground-137489b6cd7e03031b0acb5d3abab4603decde04.tar.xz
stm32f103-playground-137489b6cd7e03031b0acb5d3abab4603decde04.zip
o Adding serial1 for testing USART.
Diffstat (limited to 'gdb-start')
-rw-r--r--gdb-start33
1 files changed, 26 insertions, 7 deletions
diff --git a/gdb-start b/gdb-start
index c7da6c3..07bb364 100644
--- a/gdb-start
+++ b/gdb-start
@@ -1,15 +1,34 @@
target remote tcp:localhost:3333
define flash_test1
-monitor arm semihosting enable
-monitor reset halt
+ shell cd build && make test1.elf
+
+ monitor arm semihosting enable
+ monitor reset halt
+
+ set confirm off
+ file build/test1.elf
+ load build/test1.elf
+ set confirm on
+
+ monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+ hbreak halt
+end
+
+define flash_serial1
+ shell cd build && make serial1.elf
+
+ monitor arm semihosting enable
+ monitor reset halt
-set confirm off
-file build/test1.elf
-load build/test1.elf
-set confirm on
+ set confirm off
+ file build/serial1.elf
+ load build/serial1.elf
+ set confirm on
-monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+ monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+ delete breakpoint 1
+ hbreak halt
end
monitor reset halt