diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-13 21:03:11 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-13 21:03:11 +0100 |
commit | afbb4cc73c44b6321cae39dbe46b97155805097d (patch) | |
tree | ae19f517062b99df2d1b364db10f51d6b9fbc93f /gdb-start | |
download | stm32f103-playground-afbb4cc73c44b6321cae39dbe46b97155805097d.tar.gz stm32f103-playground-afbb4cc73c44b6321cae39dbe46b97155805097d.tar.bz2 stm32f103-playground-afbb4cc73c44b6321cae39dbe46b97155805097d.tar.xz stm32f103-playground-afbb4cc73c44b6321cae39dbe46b97155805097d.zip |
wip
Diffstat (limited to 'gdb-start')
-rw-r--r-- | gdb-start | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb-start b/gdb-start new file mode 100644 index 0000000..5fda96f --- /dev/null +++ b/gdb-start @@ -0,0 +1,29 @@ +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 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 +end + +monitor reset halt +#hbreak main +jump main |