rockbox/tools/echoplayer/openocd.make
Aidan MacDonald 7418e65138 echoplayer: add 'debug' and 'flash' targets to makefile
This replaces the gdb & openocd config in utils/stm32tools
and is easier to use. Remove the srst workaround; it seems
this was caused by the D1/D3 domains not being powered up
while the CPU was in sleep mode.

Change-Id: I28cc0273b3004c6e3146bb2447f0655cad8bb1c2
2025-12-31 08:10:40 -05:00

17 lines
463 B
Makefile

GDB := gdb
OPENOCD := openocd
OPENOCD_CFG := $(ROOTDIR)/tools/echoplayer/openocd.cfg
ifneq (,$(findstring bootloader,$(APPSDIR)))
TARGET_ELF := $(BUILDDIR)/bootloader.elf
else
TARGET_ELF := $(BUILDDIR)/rockbox.elf
endif
debug:
$(GDB) $(TARGET_ELF) -ex "target extended-remote | openocd -c \"gdb_port pipe\" -f $(OPENOCD_CFG)"
flash: $(TARGET_ELF)
$(OPENOCD) -f $(OPENOCD_CFG) -c "program $(TARGET_ELF) verify reset exit"
.PHONY: debug flash