add functions to makefile
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ hardware/module_controller/ModuleController-backups
|
||||
hardware/module_controller/~*.lck
|
||||
software/pc_client/*.json
|
||||
software/firmware_module/module_rev3/eeprom.hex
|
||||
software/firmware_module/module_rev0/eeprom.hex
|
||||
@@ -44,6 +44,7 @@ fuse:
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U lfuse:w:0xDF:m -U hfuse:w:0xCA:m -B 125kHz
|
||||
|
||||
flash-clean:
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U eeprom:r:$(TEMP_EEPROM_DUMP):i
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U flash:w:$(PROJ_BLD).hex:i
|
||||
|
||||
flash-update:
|
||||
@@ -51,6 +52,10 @@ flash-update:
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U flash:w:$(PROJ_BLD).hex:i
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U eeprom:w:$(TEMP_EEPROM_DUMP):i
|
||||
|
||||
flash-eeprom:
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U eeprom:w:$(TEMP_EEPROM_DUMP):i
|
||||
|
||||
|
||||
clear-address:
|
||||
avrdude -c $(PROG_STR) -p $(MCU) -U eeprom:r:$(TEMP_EEPROM_DUMP):i
|
||||
sed -i 's/:20000000..../:200000000000/' $(TEMP_EEPROM_DUMP)
|
||||
|
||||
Reference in New Issue
Block a user