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.
Hello,
I'm looking into external non-volatile memory to boot a delfino c28346 from, but I'm having trouble determining the total code size (.out, I guess). I know that the .map file contains information on the size of different sections in the code, but it doesn't seem to say, at least directly, the total size of the .out. I assume observing the properties of the .out file in windows explorer does not give the correct size.
Can anyone explain how I might use the .map file to determine the total code size, or another way to figure this out?
Regards,
Trey
The .text section is the code section so you could look in the link map file to determine the length of this section. In addition, if you have user defined code sections (using pragma CODE_SECTION), you would need to count those sections as well.
A utility that gives a nice summary of the sections is included in the Code Generation Tools xml processing scripts. It is called sectti and when you run it on your .out file, it reports the size of each section (code and data) in the .out file and a summary of code size and initialized and uninitialized data size. The wiki page contains details on installing the package and how to run the scripts. Hope this helps.