Build: add debug rules to Makefile
parent
5e9eb56ac1
commit
dcd3411cef
6
Makefile
6
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue