Atmel Studio: where to find out the memory size when compiling code in Assembler

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

If the project is successfully built in Atmel Studio 7 files written in C / C ++, information about the amount of occupied memory in the controller is displayed in the output window of the editor and this information is not displayed when compiling files in Assembler.
Where, in which Atmel Studio 7 file can you find out the memory size when assembling the Assembler files (main.asm)? 
Thank you in advance.
 

This topic has a solution.
Last Edited: Tue. Mar 16, 2021 - 08:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

add to post #1

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

It's right there in the middle of your assembler screenshot:

[.cseg] ... 646 32 678 32768 2.1%

 

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

westfw wrote:

It's right there in the middle of your assembler screenshot:

[.cseg] ... 646 32 678 32768 2.1%

I doubt it. Here is a screenshot of the LED blinking project. There are also 32768 bytes and the hex file, which is always larger, has a size of 153 bytes.

 

This is a link to the project. It can be compiled.

Last Edited: Mon. Mar 15, 2021 - 09:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I doubt it. Here is a screenshot of the LED blinking project. There are also 32768 bytes and the hex file, which is always larger, has a size of 153 bytes.

The 32768 bytes is the total flash side; your initial screenshot showed 646 bytes in use.  Your blink example shows 42 bytes in use. (which yields about 153 bytes of .hex; seems reasonable.)

 

(I still seem to be stuck in "can't upload pictures" mode, or I'd highlight it for you...)

 

Attachment(s): 

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

I doubt it. Here is a screenshot of the LED blinking project. There are also 32768 bytes and the hex file, which is always larger, has a size of 153 bytes.

The 32768 bytes is the total flash size; your initial screenshot showed 646 bytes in use.  Your blink example shows 42 bytes in use. (which yields about 153 bytes of .hex; seems reasonable.)

 

 

Attachment(s): 

Last Edited: Tue. Mar 16, 2021 - 05:56 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

westfw wrote:

I doubt it. Here is a screenshot of the LED blinking project. There are also 32768 bytes and the hex file, which is always larger, has a size of 153 bytes.

The 32768 bytes is the total flash size; your initial screenshot showed 646 bytes in use.  Your blink example shows 42 bytes in use. (which yields about 153 bytes of .hex; seems reasonable.)

 

 

I am very grateful for the informative answer.

Last Edited: Tue. Mar 16, 2021 - 06:22 AM