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}