From 29463e885dbe4b74350412640ad425e82f843672 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Tue, 2 Feb 2021 15:26:25 +0100 Subject: [PATCH] Corrected check-size Checksize added --mcu=atxmega128a4u to output programsize and not eep size --- Firmware/Chameleon-Mini/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Chameleon-Mini/Makefile b/Firmware/Chameleon-Mini/Makefile index f3b0918b..065c93f4 100644 --- a/Firmware/Chameleon-Mini/Makefile +++ b/Firmware/Chameleon-Mini/Makefile @@ -193,7 +193,7 @@ check_size: if [ ! -f $(TARGET).elf ]; then \ exit 0; \ fi; \ - PROGMEM_SIZE=$$(avr-size --format=avr $(TARGET).elf | grep -oP "\d+" | sed -n 3p); \ + PROGMEM_SIZE=$$(avr-size --mcu=atxmega128a4u --format=avr $(TARGET).elf | grep -oP "\d+" | sed -n 3p); \ MAX_PRGMEM_SIZE=$$(printf "%d\n" $(FLASH_DATA_ADDR)); \ if [ $$PROGMEM_SIZE -gt $$MAX_PRGMEM_SIZE ]; then \ echo "make: *** $(TARGET).elf Application Section size $$PROGMEM_SIZE excedes maximum allowed $$MAX_PRGMEM_SIZE. Please disable some features in Makefile"; \