diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-03-08 20:50:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-03-08 22:22:41 -0500 |
commit | f5b10f0c13656789b843da7bd8a1b64956b0b444 (patch) | |
tree | a33eaccb2b03eb08dbdf08b72af0f42224bb3751 | |
parent | 6ffbaa46c510ad92fb5604fb5c23bc8e1dc5b7cf (diff) | |
download | kutter-f5b10f0c13656789b843da7bd8a1b64956b0b444.tar.gz kutter-f5b10f0c13656789b843da7bd8a1b64956b0b444.tar.xz kutter-f5b10f0c13656789b843da7bd8a1b64956b0b444.zip |
lpc176x: Add support for flashing via "make flash"
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | config/generic-azteeg-x5-mini-v3.cfg | 5 | ||||
-rw-r--r-- | config/generic-re-arm.cfg | 5 | ||||
-rw-r--r-- | config/generic-smoothieboard.cfg | 5 | ||||
-rw-r--r-- | src/lpc176x/Makefile | 8 |
4 files changed, 2 insertions, 21 deletions
diff --git a/config/generic-azteeg-x5-mini-v3.cfg b/config/generic-azteeg-x5-mini-v3.cfg index 306c9a1b..a110142f 100644 --- a/config/generic-azteeg-x5-mini-v3.cfg +++ b/config/generic-azteeg-x5-mini-v3.cfg @@ -1,11 +1,6 @@ # This file contains common pin mappings for the Azteeg X5 Mini v3. To use # this config, the firmware should be compiled for the LPC176x. -# The "make flash" command does not work on the Azteeg X5 Mini v3. -# Instead, after running "make", copy the generated "out/klipper.bin" -# file to a file named "firmware.bin" on an SD card and then restart -# the Azteeg X5 Mini v3 with that SD card. - # See the example.cfg file for a description of available parameters. [stepper_x] diff --git a/config/generic-re-arm.cfg b/config/generic-re-arm.cfg index 687abdf0..dd912f45 100644 --- a/config/generic-re-arm.cfg +++ b/config/generic-re-arm.cfg @@ -1,11 +1,6 @@ # This file contains common pin mappings for Re-Arm. To use this # config, the firmware should be compiled for the LPC176x. -# The "make flash" command does not work on the Re-Arm. Instead, -# after running "make", copy the generated "out/klipper.bin" file to a -# file named "firmware.bin" on an SD card and then restart the Re-Arm -# with that SD card. - # See the example.cfg file for a description of available parameters. [stepper_x] diff --git a/config/generic-smoothieboard.cfg b/config/generic-smoothieboard.cfg index 742d5442..6698c866 100644 --- a/config/generic-smoothieboard.cfg +++ b/config/generic-smoothieboard.cfg @@ -1,11 +1,6 @@ # This file contains common pin mappings for Smoothieboard. To use # this config, the firmware should be compiled for the LPC176x. -# The "make flash" command does not work on the Smoothieboard. -# Instead, after running "make", copy the generated "out/klipper.bin" -# file to a file named "firmware.bin" on an SD card and then restart -# the Smoothieboard with that SD card. - # See the example.cfg file for a description of available parameters. [stepper_x] 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 |