sam3x8e: Use local copy of bossac for flashing
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2b9124f3c0
commit
22f0db06a1
|
@ -29,7 +29,13 @@ $(OUT)klipper.bin: $(OUT)klipper.elf
|
||||||
@echo " Creating hex file $@"
|
@echo " Creating hex file $@"
|
||||||
$(Q)$(OBJCOPY) -O binary $< $@
|
$(Q)$(OBJCOPY) -O binary $< $@
|
||||||
|
|
||||||
flash: $(OUT)klipper.bin
|
# Flash rules
|
||||||
|
lib/bossac/bin/bossac:
|
||||||
|
@echo " Building bossac"
|
||||||
|
$(Q)make -C lib/bossac bin/bossac
|
||||||
|
|
||||||
|
flash: $(OUT)klipper.bin lib/bossac/bin/bossac
|
||||||
@echo " Flashing $^ to $(FLASH_DEVICE) via bossac"
|
@echo " Flashing $^ to $(FLASH_DEVICE) via bossac"
|
||||||
$(Q)stty -F "$(FLASH_DEVICE)" 1200
|
$(Q)if [ -z $(FLASH_DEVICE) ]; then echo "Please specify FLASH_DEVICE"; exit 1; fi
|
||||||
$(Q)bossac -i -p "$(FLASH_DEVICE:/dev/%=%)" -R -e -w -v -b $(OUT)klipper.bin
|
$(Q)lib/bossac/bin/bossac -U -p "$(FLASH_DEVICE)" -a -e -w $(OUT)klipper.bin -v -b
|
||||||
|
$(Q)lib/bossac/bin/bossac -p "$(FLASH_DEVICE)" -R
|
||||||
|
|
Loading…
Reference in New Issue