From dcd3411cef27c6e166a8d0c04cab82945754f817 Mon Sep 17 00:00:00 2001 From: rkcf Date: Fri, 17 Nov 2023 13:53:41 -0600 Subject: [PATCH] Build: add debug rules to Makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 3c8b768..fd29efe 100644 --- a/Makefile +++ b/Makefile @@ -36,3 +36,9 @@ all: libopencm3 $(NAME).bin %.bin: %.elf $(OBJCOPY) $< -O binary $@ + +gdb: + arm-none-eabi-gdb -ex 'target extended-remote :3333' $(NAME).elf + +oocd: + openocd -f /usr/share/openocd/scripts/interface/stlink.cfg -f /usr/share/openocd/scripts/target/stm32f4x.cfg