Show flash, ram, etc usage

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

I just upgraded AVR Studio from a rather old version and it no longer tells me my flash, ram and eeprom usage after a compile (with avr gcc).
I am pretty sure that this has been asked and answered before but I really searched around even looking at makefile construction etc to find out how to get it back.

Edward

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

Curious? With 20070525 and 4.13.528 and using Studio's GCC project system I see:

AVR Memory Usage
----------------
Device: atmega16

Program:    1384 bytes (8.4% Full)
(.text + .data + .bootloader)

Data:          0 bytes (0.0% Full)
(.data + .bss + .noinit)

But to determine where the fault lies maybe try ticking the "use external makefile" box and direct it towards an Mfile generated Makefile?

Such a Makefile will definitely contain the commands to show sizes:

# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
ELFSIZE = $(SIZE) -A $(TARGET).elf
AVRMEM = avr-mem.sh $(TARGET).elf $(MCU)

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

Will try that. Now to learn how to use Mfile....

Edward

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

Ok, this may take some time to get working, just tried a mfile generated makefile and got 55 errors and 11 warnings ;']

Edward

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

Key thing in an Mfile generated Makefile is to make sure you have everything listed on the SRC= and ASRC= lines and if they are dotted around various directories then use RELATIVE (to the Makefile location) and not absolute paths. Also try to avoid sub-dirs that have spaces in the name (or you'll end up having to wrap everything in double quotes)

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

Well, it looks like I should have given you more information.
I had upgraded from 4.12.460 to 4.12.498 since.. well fear of a beta.
I have bitten the bullet and upgraded to 4.13.b528 and the usage stats are back again.

Edward

PS. Does anyone else dislike the registration thing just to get AVR Studio? I HAVE to give them all my info just to get it?

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

You can usually access the latest Studio without need to register at www.atmel.no/beta_ware/

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

[off-topic]

futrtrubl wrote:
Does anyone else dislike the registration thing just to get AVR Studio?
No, not really. Think of it this way: The tools guys are working inside a for-profit organization as a "support" group. Having been in that position myself I can tell you that they are constantly trying to prove that they are "worth" the money spent on them. In this instance they are trying to prove that by getting statistics on the people who use their tools.

Yeah, yeah, I know. The marketing folks will also get their greedy mitt... errr... lovely hands on this data. I'm sure they wouldn't dream of abusing that privilege. Right, Atmel? :evil:

Since the informations does not need to be correct to get the tools (i.e., they don't send you an email with confirmation codes, etc), you could be, umm, "creative" with that (dis-)information, now couldn't you? :wink:

All in all, it's not some thing that, in the grand scheme of things, is worth getting all worked up about.

Stu

[/off-topic]

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

Yup, not too worked up about it. I didn't go as far as saying "hate" for instance ;']
I do feel better knowing there is a legitimate reason for having things that way.

Edward