From f5b10f0c13656789b843da7bd8a1b64956b0b444 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 8 Mar 2019 20:50:46 -0500 Subject: lpc176x: Add support for flashing via "make flash" Signed-off-by: Kevin O'Connor --- src/lpc176x/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/lpc176x/Makefile b/src/lpc176x/Makefile index ae15f880..1f0e55e2 100644 --- a/src/lpc176x/Makefile +++ b/src/lpc176x/Makefile @@ -45,9 +45,5 @@ $(OUT)klipper.bin: $(OUT)klipper.elf $(Q)$(OBJCOPY) -O binary $< $@ flash: $(OUT)klipper.bin - @echo "" - @echo " The LPC176x build does not currently support 'make flash'" - @echo "" - @echo " To flash a Smoothieboard, copy the $(OUT)klipper.bin to a file" - @echo " named firmware.bin on an SD card and then restart the" - @echo " Smoothieboard with that SD card." + @echo " Flashing $< to $(FLASH_DEVICE)" + $(Q)$(PYTHON) ./scripts/flash_usb.py -t lpc176x -d "$(FLASH_DEVICE)" $(OUT)klipper.bin -- cgit v1.2.3-70-g09d2