From 83fe5b34b26b35ae0abf20e59bbc1a3f3bb57357 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sat, 1 Feb 2020 22:08:08 +0100 Subject: estop/make: Add firmware dumping targets Signed-off-by: Michael Buesch --- stepper_driver/estop/firmware/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'stepper_driver/estop/firmware/Makefile') 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 -- cgit v1.2.3