From d5bcc86ca8958e86cd06ab633510b646e7a31c36 Mon Sep 17 00:00:00 2001 From: Dennis Gunia Date: Sat, 1 Nov 2025 23:47:40 +0100 Subject: [PATCH] add functions to makefile --- .gitignore | 3 ++- software/firmware_module/module_rev3/Makefile | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 207c14b..32e7585 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ hardware/module_controller/ModuleController-backups/* hardware/module_controller/ModuleController-backups hardware/module_controller/~*.lck software/pc_client/*.json -software/firmware_module/module_rev3/eeprom.hex \ No newline at end of file +software/firmware_module/module_rev3/eeprom.hex +software/firmware_module/module_rev0/eeprom.hex \ No newline at end of file diff --git a/software/firmware_module/module_rev3/Makefile b/software/firmware_module/module_rev3/Makefile index 495df94..cb46db2 100644 --- a/software/firmware_module/module_rev3/Makefile +++ b/software/firmware_module/module_rev3/Makefile @@ -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)