From 07090d14e0dafc3b5b564a339cd615c2d9864125 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 31 Aug 2016 16:30:35 +0200 Subject: o A couple of stepper motor driver applications. --- gdb-start | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gdb-start') diff --git a/gdb-start b/gdb-start index de85932..fbd8789 100644 --- a/gdb-start +++ b/gdb-start @@ -1,5 +1,6 @@ target remote tcp:localhost:3333 monitor reset halt +set remotetimeout 10 define flash_test1 shell cd build && make test1.elf @@ -46,6 +47,36 @@ define flash_serial2 hbreak halt end +define flash_stepper1 + shell cd build && make stepper1.elf + + monitor arm semihosting enable + monitor reset halt + + set confirm off + file build/apps/stepper1/stepper1.elf + load build/apps/stepper1/stepper1.elf + set confirm on + + monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480 + hbreak halt +end + +define flash_stepper2 + shell cd build && make stepper2.elf + + monitor arm semihosting enable + monitor reset halt + + set confirm off + file build/apps/stepper2/stepper2.elf + load build/apps/stepper2/stepper2.elf + set confirm on + + monitor stm32f1x.cpu mwb 0x20000000 0x5a 20480 + hbreak halt +end + define flash_os1 shell cd build && make os1.elf -- cgit v1.2.3