Display used memory for AVR

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Niro
Posts: 77
Joined: Mon Jan 03, 2011 8:58 pm
Has thanked: 29 times
Been thanked: 10 times
Contact:

Display used memory for AVR

Post by Niro »

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

User avatar
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

Post by Benj »

Hi Niro,

Might be worth asking on AVR freaks to see if anyone there knows how to do it.

Post Reply