lpc176x: Add support for flashing via "make flash"

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-03-08 20:50:46 -05:00
parent 6ffbaa46c5
commit f5b10f0c13
4 changed files with 2 additions and 21 deletions

View File

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