diff --git a/Firmware/Chameleon-Mini/.gitignore b/Firmware/Chameleon-Mini/.gitignore new file mode 100644 index 0000000..11e4750 --- /dev/null +++ b/Firmware/Chameleon-Mini/.gitignore @@ -0,0 +1,8 @@ +/Chameleon-Mini.eep +/Chameleon-Mini.hex +/Chameleon-Mini.elf +/Chameleon-Mini.map +/Chameleon-Mini.bin +/Chameleon-Mini.lss +/Chameleon-Mini.sym +/Bin/ diff --git a/Firmware/Chameleon-Mini/Chameleon-Mini.eep b/Firmware/Chameleon-Mini/Latest/Chameleon-Mini.eep similarity index 100% rename from Firmware/Chameleon-Mini/Chameleon-Mini.eep rename to Firmware/Chameleon-Mini/Latest/Chameleon-Mini.eep diff --git a/Firmware/Chameleon-Mini/Chameleon-Mini.hex b/Firmware/Chameleon-Mini/Latest/Chameleon-Mini.hex similarity index 100% rename from Firmware/Chameleon-Mini/Chameleon-Mini.hex rename to Firmware/Chameleon-Mini/Latest/Chameleon-Mini.hex diff --git a/Firmware/Chameleon-Mini/Makefile b/Firmware/Chameleon-Mini/Makefile index 31599ad..01dc04e 100644 --- a/Firmware/Chameleon-Mini/Makefile +++ b/Firmware/Chameleon-Mini/Makefile @@ -105,6 +105,11 @@ AVRDUDE_WRITE_APP = -U application:w:$(TARGET).hex AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) +#AVRDUDE settings to program the precompiled firmware +AVRDUDE_WRITE_APP_LATEST = -U application:w:Latest/Chameleon-Mini.hex +AVRDUDE_WRITE_EEPROM_LATEST = -U eeprom:w:Latest/Chameleon-Mini.eep + + # Default target all: @@ -137,6 +142,10 @@ spmhelper: $(TARGET).elf program: $(TARGET).hex $(TARGET).eep avrdude $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_APP) $(AVRDUDE_WRITE_EEPROM) +# Program the device using avrdude with the latest official firmware +program-latest: + avrdude $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_APP_LATEST) $(AVRDUDE_WRITE_EEPROM_LATEST) + # Program the device using batchisp and the DFU bootloader # Note that the device has to be in bootloader mode already dfu-flip: $(TARGET).hex $(TARGET).eep