1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 23:35:30 +03:00
inav/make/gdb.mk
Michel Pastor 6f76bd5ad9
Add bootloader and firmware update API (#5728)
* Add F765XG MCU support

* Add bootloader and update system

* Fix linker files
2020-07-20 22:46:15 +02:00

17 lines
484 B
Makefile

GDB ?= $(ARM_SDK_PREFIX)gdb
GDB_REMOTE ?= localhost:3333
GDB_OPENOCD_INIT_CMDS ?=
GDB_OPENOCD_INIT_CMDS += -ex "monitor reset halt"
ifneq ($(LOAD),)
GDB_OPENOCD_INIT_CMDS += -ex load
endif
ifneq ($(SEMIHOSTING),)
GDB_OPENOCD_INIT_CMDS += -ex "monitor arm semihosting enable"
endif
gdb-openocd: $(TARGET_ELF)
$(GDB) $< -ex "target remote $(GDB_REMOTE)" $(GDB_OPENOCD_INIT_CMDS)
gdb-openocd-bl: $(TARGET_BL_ELF)
$(GDB) $< -ex "target remote $(GDB_REMOTE)" $(GDB_OPENOCD_INIT_CMDS)