mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 09:40:35 -05:00
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
17 lines
463 B
Makefile
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
|