From 137489b6cd7e03031b0acb5d3abab4603decde04 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 20 Dec 2015 15:10:55 +0100 Subject: o Adding serial1 for testing USART. --- gdb-start | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'gdb-start') 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 -- cgit v1.2.3