Add avrdude -D argument. Some ardus do not write new user code without it

This commit is contained in:
Silver Kits 2016-09-08 12:40:53 +03:00
parent 1a7a0a4630
commit 667a72739c

View File

@ -52,12 +52,14 @@ LDFLAGS = -mmcu=$(BOARD)
OBJCOPYARGS = -O ihex \ OBJCOPYARGS = -O ihex \
-R .eeprom -R .eeprom
# FIXME Find out why some Arduinos require -D to write code
AVRDUDEARGS = -p $(BOARD) \ AVRDUDEARGS = -p $(BOARD) \
-c wiring \ -c wiring \
-F \ -F \
-P $(DEVICE) \ -P $(DEVICE) \
-b 115200 \ -b 115200 \
-V -V \
-D
all: $(ELF) $(TARGET) all: $(ELF) $(TARGET)