Display used memory for AVR
Posted: Wed Sep 24, 2014 3:45 pm
Hi all,
I'm trying to find a way to show the percentage of used program and data ammount of my ATmega328 with avr-size.
This would be quite more comfortable to read.
Some information says you should add --mcu=atmega328 -C to the avr-size options.
So I modified avra.bat :
"%~dp0..\bin\avr-size.exe" --mcu=%1 -C -B -d %2
what show this text:
"....\avr-size.exe" --mcu=atmega328p -C -B -d "E:\PROJEKTE\test.elf"
But the compiler information is still someting like this
text data bss dec hex filename
16190 394 955 17539 4483 E:\PROJEKTE\test.elf
And it should be someting like :
AVR Memory Usage
----------------
Device: atmega8
Program: 7264 bytes (88.7% Full)
(.text + .data + .bootloader)
Data: 61 bytes (6.0% Full)
(.data + .bss + .noinit)
Does anybody know a way to make this work?
Best regards,
Niro
I'm trying to find a way to show the percentage of used program and data ammount of my ATmega328 with avr-size.
This would be quite more comfortable to read.
Some information says you should add --mcu=atmega328 -C to the avr-size options.
So I modified avra.bat :
"%~dp0..\bin\avr-size.exe" --mcu=%1 -C -B -d %2
what show this text:
"....\avr-size.exe" --mcu=atmega328p -C -B -d "E:\PROJEKTE\test.elf"
But the compiler information is still someting like this
text data bss dec hex filename
16190 394 955 17539 4483 E:\PROJEKTE\test.elf
And it should be someting like :
AVR Memory Usage
----------------
Device: atmega8
Program: 7264 bytes (88.7% Full)
(.text + .data + .bootloader)
Data: 61 bytes (6.0% Full)
(.data + .bss + .noinit)
Does anybody know a way to make this work?
Best regards,
Niro