Build: add debug rules to Makefile

main
rkcf 2023-11-17 13:53:41 -06:00
parent 5e9eb56ac1
commit dcd3411cef
1 changed files with 6 additions and 0 deletions

View File

@ -36,3 +36,9 @@ all: libopencm3 $(NAME).bin
%.bin: %.elf %.bin: %.elf
$(OBJCOPY) $< -O binary $@ $(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