add functions to makefile

This commit is contained in:
Dennis Gunia
2025-11-01 23:47:40 +01:00
parent 3b6743728d
commit d5bcc86ca8
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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)