aboutsummaryrefslogtreecommitdiff
path: root/bin/debug
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-10-29 15:42:29 -0400
committerPaul Selkirk <paul@psgd.org>2015-10-29 15:42:29 -0400
commit9278e9bafd96105b64f9946eb94f5618f01649d3 (patch)
tree2aca37b1edebc9eb717456179f85927929c98cbb /bin/debug
parentfb73e2d75b4e99a29c28bbbaf754222010c273b7 (diff)
add libhal tests, some cleanup (some mess-making)
Diffstat (limited to 'bin/debug')
-rwxr-xr-xbin/debug7
1 files changed, 6 insertions, 1 deletions
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)