Explanation of AVR Memory Usage!

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
i have some difficulties understanding the AVR Memory Usages section after i build my program.

i am giving an example bellow,

Quote:
AVR Memory Usage
----------------
Device: atmega88
Program: 1398 bytes (17.1% Full)
(.text + .data + .bootloader)
Data: 301 bytes (29.4% Full)
(.data + .bss + .noinit)

what is the actual size of my program? please pardon me if its a silly question :(
is there anyone kind enough to explain me the AVR Memory Usage or post any link where I will find some info!!!

thnx

With best regards
Mahmudur

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

what is the actual size of my program?

1,398 bytes of flash occupying 17.1% of the flash of the mega88.

The other figure is how much of the RAM will be used for linked variables that are positioned at compile time (but does not including anything for run time stack based usage). However as long as your Data: percentage remains below about 75% you should be OK and when it exceeds that look into using "PROGMEM" which shifts some things from RAM to be in flash only.