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