aboutsummaryrefslogtreecommitdiff
path: root/gdb-start
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-12-14 07:51:19 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-12-14 07:51:19 +0100
commitc2aae4ccb63158f197c3d0629082e7699dfe8e25 (patch)
tree647d7de9bf61552bfc89b0a736f68caada92611c /gdb-start
parentafbb4cc73c44b6321cae39dbe46b97155805097d (diff)
downloadstm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.gz
stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.bz2
stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.tar.xz
stm32f103-playground-c2aae4ccb63158f197c3d0629082e7699dfe8e25.zip
correct linking, putting the assembly code in .text with proper linking script made ld recognise the functions as thumb instructions.
Diffstat (limited to 'gdb-start')
-rw-r--r--gdb-start8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb-start b/gdb-start
index 5fda96f..e46fd1c 100644
--- a/gdb-start
+++ b/gdb-start
@@ -16,14 +16,14 @@ monitor stm32f1x.cpu mwb 0x20000000 0x5a 0x5000
define flash_test1
file build/test1.elf
-load build/test1.elf
+#load build/test1.elf
monitor reset halt
monitor flash probe 0
monitor stm32f1x mass_erase 0
-monitor flash write_bank 0 test1.elf.bin 0
monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480
+monitor flash write_bank 0 test1.elf.bin
+delete breakpoint
+hbreak main
end
monitor reset halt
-#hbreak main
-jump main