From 42e642ddfbffcf67b8cc642f056f7fafa24ab320 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 9 Feb 2025 15:51:16 +0100 Subject: [PATCH] Make flash target depend on binary, add flash2 (wlink) target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fdbc9d..c152a45 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,12 @@ $(TARGET).lst : $(TARGET).elf $(TARGET).hex : $(TARGET).elf @$(OBJCOPY) -O ihex $< $(TARGET).hex -flash: +flash: $(TARGET).bin minichlink -w $(TARGET).bin flash -b +flash2: $(TARGET).bin + wlink flash $(TARGET).bin + clean: rm -f ch32*.[ch] rm -f *.{ld,hex,bin,map,lst,elf}