diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 20:53:42 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 20:53:42 +0100 |
commit | 9129af503c8211d713c8a160a3b6f3f86b328639 (patch) | |
tree | 3cd9ff26f4d323fc553b2a99d56be9b81a57a4c4 /gdb-start | |
parent | aae314fead54dab7b258f3a6c7ac1615833f9987 (diff) | |
download | stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.gz stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.bz2 stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.xz stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.zip |
o Adding a utility to dump segment sizes from the generated ELF files.
o Adding os2 with support for critical sections. More to come.
o Adding dma1 to test DMA + SPI.
Diffstat (limited to 'gdb-start')
-rw-r--r-- | gdb-start | 35 |
1 files changed, 34 insertions, 1 deletions
@@ -1,4 +1,5 @@ target remote tcp:localhost:3333 +monitor reset halt define flash_test1 shell cd build && make test1.elf @@ -62,4 +63,36 @@ define flash_os1 echo Run this if first run:\n hbreak halt\n hbreak job1\n hbreak PendSV_Handler\n end -monitor reset halt +define flash_os2 + shell cd build && make os2.elf + + monitor arm semihosting enable + monitor reset halt + + set confirm off + file build/os2.elf + load build/os2.elf + set confirm on + + set $r0=0, $r1=-1, $r2=-2, $r3=-3, $r4=-4, $r5=-5, $r6=-6, $r7=-7, $r8=-8, $r9=-9, $r10=-10, $r11=-11, $r12=-12 + monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480 + + echo Run this if first run:\n hbreak halt\n hbreak job1\n hbreak PendSV_Handler\n +end + +define flash_dma1 + shell cd build && make dma1.elf + + monitor arm semihosting enable + monitor reset halt + + set confirm off + file build/apps/dma1/dma1.elf + load build/apps/dma1/dma1.elf + set confirm on + + set $r0=0, $r1=-1, $r2=-2, $r3=-3, $r4=-4, $r5=-5, $r6=-6, $r7=-7, $r8=-8, $r9=-9, $r10=-10, $r11=-11, $r12=-12 + monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480 + + echo Run this if first run:\n hbreak halt\n +end |