i want to knw the entire source code size written on stellaris lm3s8962 controller using IAR ide workbench.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
i want to knw the entire source code size written on stellaris lm3s8962 controller using IAR ide workbench.
I suspect the question already answered is the one you meant to ask though.
Quite correct. Reading and understanding post here is often troublesome. A little more thought/carefulness on the enquirer's side would be helpful. And I restrain myself from interpreting the lack of those ...
someone please help me with below questions.
The term "readonly memory" refers to Flash.
"code memory", as one might guess, are the Flash size occupied by actual routines/instructions, i.e. "code".
And "readonly data" are constant data, which are also located in Flash to save precious RAM space. Think of constant arrays and strings that never change during runtime.
"readwrite data" is the size of RAM occupied/used by your application. Since it is generated at runtime, and lost when powering off the MCU, there is nothing to "download" into RAM. Only the Flash (code and constant data) is downloaded and "flashed" to the (not so) read-only memory by the debugger or download tool.
This whole procedure is slightly different from a PC, where everything is actually RAM, and all addresses are virtual. To understand the whole process, I suggest to search for documents about the linking stage of C compilers/toolchains in general, and for Cortex M controllers in particular. The Cortex M has a fixed memory map, and somehow the linker must map logical addresses (function names and variable names) to real addresses. The map file is a list of this mapping, and the part you cited is just the summary (memory occupation).
kaviarasan m said:this is my entire map file, btw still and not conviced with the answer, u mean to say read only code + ready only data is my entire source code size???
Almost
The flash will contain the following
Like f.m., I'm not going to read through a map file. Is there some reason you think the above does not account for the usage?
Robert
May I note that both posters f.m. & Robert are "pros" - generously provide much time/effort here in support of others - too often unthanked.
I take this opportunity to thank, "f.m. and Robert."
Indeed the map file you present is large, long and forbidding. (that's a normal, human reaction - is it not?)
Might I suggest your creation of a far smaller, simpler program - designed expressly to, "Answer your file size questions." Limiting the size will (greatly) ease the analysis efforts demanded/expended - both by you and your forum "helpers." In addition - as f.m. has detailed - you can experiment by adding a known number of constants and arrays - and then discover, "Where & how" they're stored.
KISS is a (too little) byword practiced here. (Vendor will not touch w/proverbial "ten foot pole.") Yet if my suggestion has merit - it is the "Unlocking of Understanding via the creation of a vastly more manageable (battlefield)" - aka KISS. You will not be disappointed...