We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello everyone,
I'm currently working on memory usage analysis. While reviewing the .map file generated by Keil, I came across the following section:
.map
,
I'm wondering if this information can be used to determine ROM and RAM usage.
P.S. I couldn't find any official documentation explaining this part of the .map file (generated by the linker). It would be great if anyone has insights or documentation to share!
The totals shown are explained in the last three rows of the report.
ROM usage - or memory needed to store the application is the total of all the code, and data with initial values (ie RO Data and RW Data). Typically this is how much Flash memory is needed.
RAM usage - or memory needed to store data, is the RW size. This is the minimum RAM needed, but you will likely need more. This report does not take into account Stack and Heap usage (see my colleague's message for further info), nor does it take into account if you copy any code from "ROM" to "RAM" as part of scatterloading.
Hence "Total ROM size", but not "Total RAM size" is listed.