aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-08 21:09:35 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-03-08 22:22:41 -0500
commit6a16e1f4c5f7c4ea4307cdca9e500d21fa842e99 (patch)
tree79da579e7d0b68bac76fadd0ae9c4292d3ff183f
parent079fdf8807945d52bbc2614ce1978a91c7dcae10 (diff)
downloadkutter-6a16e1f4c5f7c4ea4307cdca9e500d21fa842e99.tar.gz
kutter-6a16e1f4c5f7c4ea4307cdca9e500d21fa842e99.tar.xz
kutter-6a16e1f4c5f7c4ea4307cdca9e500d21fa842e99.zip
atsamd: Add support to "make flash" to automatically enter the bootloader
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/atsamd/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/atsamd/Makefile b/src/atsamd/Makefile
index 7fbfcbcf..2ed3a6b4 100644
--- a/src/atsamd/Makefile
+++ b/src/atsamd/Makefile
@@ -61,6 +61,5 @@ BOSSAC_OFFSET-$(CONFIG_MACH_SAMD21) := 0x2000
BOSSAC_OFFSET-$(CONFIG_MACH_SAMD51) := 0x4000
flash: $(OUT)klipper.bin lib/bossac/bin/bossac
- @echo " Flashing $< to $(FLASH_DEVICE) via bossac"
- $(Q)if [ -z $(FLASH_DEVICE) ]; then echo "Please specify FLASH_DEVICE"; exit 1; fi
- $(Q)lib/bossac/bin/bossac -U -p "$(FLASH_DEVICE)" -a --offset=$(BOSSAC_OFFSET-y) -w $< -v -b -R
+ @echo " Flashing $< to $(FLASH_DEVICE)"
+ $(Q)$(PYTHON) ./scripts/flash_usb.py -t atsamd -d "$(FLASH_DEVICE)" -o $(BOSSAC_OFFSET-y) $(OUT)klipper.bin