From 9278e9bafd96105b64f9946eb94f5618f01649d3 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 29 Oct 2015 15:42:29 -0400 Subject: add libhal tests, some cleanup (some mess-making) --- bin/debug | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/debug b/bin/debug index f6ede81..983b9bb 100755 --- a/bin/debug +++ b/bin/debug @@ -2,6 +2,11 @@ PROJ="${1?'project'}" -GDB=arm-none-eabi-gdb +OPENOCD=openocd +OPENOCD_PROC_FILE=/usr/share/openocd/scripts/board/st_nucleo_f401re.cfg +$OPENOCD -f $OPENOCD_BOARD_DIR/$OPENOCD_PROC_FILE & +GDB=arm-none-eabi-gdb $GDB -ex "target remote localhost:3333" -ex "set remote hardware-breakpoint-limit 6" -ex "set remote hardware-watchpoint-limit 4" $PROJ.elf + +kill -9 $(pidof $OPENOCD) -- cgit v1.2.3