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