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
Display used memory for AVR
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Display used memory for AVR
Hi Niro,
Might be worth asking on AVR freaks to see if anyone there knows how to do it.
Might be worth asking on AVR freaks to see if anyone there knows how to do it.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel