summaryrefslogtreecommitdiffstats
path: root/stepper_driver/estop/firmware/Makefile
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2020-02-01 22:08:08 +0100
committerMichael Buesch <m@bues.ch>2020-02-01 22:08:08 +0100
commit83fe5b34b26b35ae0abf20e59bbc1a3f3bb57357 (patch)
tree82f3714dd0a05cdfb99908788e8e7b0d66b17751 /stepper_driver/estop/firmware/Makefile
parente191f0bef923e578497045083c1072dea8ab2c56 (diff)
downloadcnc-83fe5b34b26b35ae0abf20e59bbc1a3f3bb57357.tar.xz
cnc-83fe5b34b26b35ae0abf20e59bbc1a3f3bb57357.zip
estop/make: Add firmware dumping targets
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'stepper_driver/estop/firmware/Makefile')
-rw-r--r--stepper_driver/estop/firmware/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/stepper_driver/estop/firmware/Makefile b/stepper_driver/estop/firmware/Makefile
index 758bd1c..4b62be0 100644
--- a/stepper_driver/estop/firmware/Makefile
+++ b/stepper_driver/estop/firmware/Makefile
@@ -26,6 +26,14 @@ install: all
$(AVRDUDE) -B $(AVRDUDE_SPEED) -p $(AVRDUDE_ARCH) \
-c $(PROGRAMMER) -P $(PROGPORT) -U flash:w:$(HEX)
+dumphex:
+ $(AVRDUDE) -B $(AVRDUDE_SPEED) -p $(AVRDUDE_ARCH) \
+ -c $(PROGRAMMER) -P $(PROGPORT) -U flash:r:$(HEX).dump:i
+
+dumpbin:
+ $(AVRDUDE) -B $(AVRDUDE_SPEED) -p $(AVRDUDE_ARCH) \
+ -c $(PROGRAMMER) -P $(PROGPORT) -U flash:r:$(NAME).S.bin.dump:r
+
avrdude:
$(AVRDUDE) -B $(AVRDUDE_SPEED) -p $(AVRDUDE_ARCH) \
-c $(PROGRAMMER) -P $(PROGPORT) -t
bues.ch cgit interface