diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-16 17:04:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-27 08:54:43 -0400 |
commit | 051e8724a0e05f2583be91830e5694444d04e26a (patch) | |
tree | 6f8f2c68817cfd319d3e33644e9db3762fa6dd62 /src | |
parent | 22f0db06a1b301101041e22c486ac57a241fe864 (diff) | |
download | kutter-051e8724a0e05f2583be91830e5694444d04e26a.tar.gz kutter-051e8724a0e05f2583be91830e5694444d04e26a.tar.xz kutter-051e8724a0e05f2583be91830e5694444d04e26a.zip |
sam4e8e: Use local copy of bossac for flashing
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/sam4e8e/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sam4e8e/Makefile b/src/sam4e8e/Makefile index 9fb2fd60..6e8a193c 100644 --- a/src/sam4e8e/Makefile +++ b/src/sam4e8e/Makefile @@ -32,6 +32,12 @@ $(OUT)klipper.bin: $(OUT)klipper.elf @echo " Creating bin file $@" $(Q)$(OBJCOPY) -O binary $< $@ -flash: $(OUT)klipper.bin - @echo "" - @echo " The SAM4E8E build does not currently support 'make flash'" +# 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" + $(Q)if [ -z $(FLASH_DEVICE) ]; then echo "Please specify FLASH_DEVICE"; exit 1; fi + $(Q)lib/bossac/bin/bossac -U -p "$(FLASH_DEVICE)" -e -w $(OUT)klipper.bin -v -b -R |