aboutsummaryrefslogtreecommitdiff
path: root/gdb-start
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-12-16 22:20:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-12-16 22:20:06 +0100
commit7bc66b8b61d818f0beaaf9a944abd6e086e0fae6 (patch)
treec001816523caf0b75391950296ee2d5ca4e7d550 /gdb-start
parentd3e577db0bb3b3343ac58dad1c3e9ab06f051d0b (diff)
downloadstm32f103-playground-7bc66b8b61d818f0beaaf9a944abd6e086e0fae6.tar.gz
stm32f103-playground-7bc66b8b61d818f0beaaf9a944abd6e086e0fae6.tar.bz2
stm32f103-playground-7bc66b8b61d818f0beaaf9a944abd6e086e0fae6.tar.xz
stm32f103-playground-7bc66b8b61d818f0beaaf9a944abd6e086e0fae6.zip
o Functional output pin toggler!
Diffstat (limited to 'gdb-start')
-rw-r--r--gdb-start31
1 files changed, 11 insertions, 20 deletions
diff --git a/gdb-start b/gdb-start
index 23195c0..3973a49 100644
--- a/gdb-start
+++ b/gdb-start
@@ -1,28 +1,19 @@
target remote tcp:localhost:3333
-file build/test1.elf
-load build/test1.elf
-
-# Write 0x5000 (20k) with the pattern 0x5a
-monitor stm32f1x.cpu mwb 0x20000000 0x5a 0x5000
-
-#monitor stm32f1x.cpu mww 0x40010c00 0x55555555 1
-#monitor stm32f1x.cpu mww 0x40010c04 0x55555555 1
-# BSRR
-#monitor stm32f1x.cpu mww 0x40010c10 0xffff0000 1
-#monitor stm32f1x.cpu mww 0x40010c10 0x0000ffff 1
-
-# ODR
-# monitor stm32f1x.cpu mww 0x40010c0c 0x0000ffff 1
define flash_test1
-file build/test1.elf
-#load build/test1.elf
+monitor arm semihosting enable
monitor reset halt
-monitor flash probe 0
-monitor stm32f1x mass_erase 0
+
monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
-monitor flash write_bank 0 test1.elf.bin 0
-monitor arm semihosting enable
+
+set confirm off
+file build/test1.elf
+load build/test1.elf
+set confirm on
+
+#monitor flash probe 0
+#monitor stm32f1x mass_erase 0
+#monitor flash write_bank 0 test1.elf.bin 0
# delete breakpoint
# hbreak main
end