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

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