From 246e5680113b06931914de1eeca63e09f5b3685f Mon Sep 17 00:00:00 2001 From: Simon John Date: Fri, 22 Dec 2017 10:14:06 +0000 Subject: Moved -e flag for avrdude from set_fuses to ispload as you wouldn't want a chip erase operation when only setting the fuses. ispload probably should erase the flash+eeprom+lockbits as that's when you upload the sketch. setting fuses should be just that, not deleting anything. --- Arduino.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index 1d7299f..f2e48a5 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1531,7 +1531,7 @@ reset_stty: $$STTYF $(call get_monitor_port) -hupcl ispload: $(TARGET_EEP) $(TARGET_HEX) verify_size - $(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) \ + $(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e \ $(AVRDUDE_ISPLOAD_OPTS) burn_bootloader: @@ -1547,7 +1547,7 @@ endif set_fuses: ifneq ($(strip $(AVRDUDE_ISP_FUSES_PRE)),) - $(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) -e $(AVRDUDE_ISP_FUSES_PRE) + $(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_PRE) endif ifneq ($(strip $(AVRDUDE_ISP_FUSES_POST)),) $(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) $(AVRDUDE_ISP_FUSES_POST) -- cgit v1.2.3