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
This commit is contained in:
Aidan MacDonald 2025-12-19 21:02:10 +00:00 committed by Solomon Peachy
parent 025f3def04
commit 7418e65138
4 changed files with 27 additions and 20 deletions

View file

@ -180,6 +180,11 @@ else # core
endif # bootloader
# Include makefile for flashing/debugging with OpenOCD & GDB
ifeq (echor1,$(MODELNAME))
include $(ROOTDIR)/tools/echoplayer/openocd.make
endif
# One or more subdir makefiles requested --gc-sections?
ifdef CORE_GCSECTIONS
# Do not use '--gc-sections' when compiling sdl-sim