From 667a72739cf065cba4e5eb15fc8aa54cec1e44ac Mon Sep 17 00:00:00 2001 From: Silver Kits Date: Thu, 8 Sep 2016 12:40:53 +0300 Subject: [PATCH] Add avrdude -D argument. Some ardus do not write new user code without it --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4aa6af9..0fcdf9b 100644 --- a/Makefile +++ b/Makefile @@ -52,12 +52,14 @@ LDFLAGS = -mmcu=$(BOARD) OBJCOPYARGS = -O ihex \ -R .eeprom +# FIXME Find out why some Arduinos require -D to write code AVRDUDEARGS = -p $(BOARD) \ -c wiring \ -F \ -P $(DEVICE) \ -b 115200 \ - -V + -V \ + -D all: $(ELF) $(TARGET)