9 lines
242 B
Makefile
9 lines
242 B
Makefile
|
GDB ?= gdb
|
||
|
OPENOCD_SCRIPTS = $(CONTIKI)/platform/galileo/bsp/openocd-scripts
|
||
|
|
||
|
.PHONY: debug
|
||
|
|
||
|
debug: $(CONTIKI_PROJECT).$(TARGET)
|
||
|
@openocd -s $(OPENOCD_SCRIPTS) -f debug.cfg &> $(shell pwd)/LOG_OPENOCD &
|
||
|
@$(GDB) $< -ex "target remote :3333"
|