Make flash target depend on binary, add flash2 (wlink) target

This commit is contained in:
Imbus 2025-02-09 15:51:16 +01:00
parent 9b30ef6db6
commit 42e642ddfb

View file

@ -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}