Hi,
how i can look ram size in .map file?? use eclipse
attach the file HKlock.map
please advise me, thanks.
Hi,
how i can look ram size in .map file?? use eclipse
attach the file HKlock.map
please advise me, thanks.
This blog post explains how to find the RAM and flash usage in a .map file:
The total RAM usage is:
ZI-data + RW-data
The total flash usage is:
Code + RO-data + RW-data
ZI-data: Zero initialized data, data variables set to 0
RW-data: Data variables that are different from 0
RO-data: Constants placed in flash
hi Kristin,
I have seen this blog but I still do not understand how to calculate RAM.
I only know that you say these values in the .map file inside, but I can not see it.
Best Regards, Rick.
The values above comes in .map files generated by Keil.
For GCC, the values are not written directly. One option is to compile the project using Segger Embedded Studio. In Segger Embedded studio, the RAM and flash usage is shown graphically.
Another option is to test the application made by Elliot Stock, linked to in the comments to the RAM/ROM blog.