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.

usage of RAM & FLASH for my code



Dear Friend,

How can I check the usage of RAM & FLASH for my code? 

In memory windows nothing is enabled. 

  • Hello!

    If I understand you then you can do it through MAP file. Also this link will be useful http://processors.wiki.ti.com/index.php/C28x_Compiler_-_Understanding_Linking#

    Regards,

    Igor

  • Chinmay,

    If you have an .out file, you should also have (or be able to generate) a .map file.  The map file gives you "used" sizes for your flash sections.

    Also you can generate a hex file using the hex utility (ccsv5\tools\compiler\c2000\bin\hex2000).  The number of characters in that hex file should give you a good approximation of how many words of flash the .out file will require.

    Another option to make sure you are checking all the sections, discussed further in the Optimizing C/C++ User's Guide section titled Sections, wihch are stored in Flash is to compare the Memory Map for the F28035 found in the User's Guide, Figure 3-2 with address ranges given in Table 3-1, with the SECTION ALLOCATION MAP found in the .map file below the MEMORY CONFIGURATION.  Check the origin address of each section and their corresponding lengths in the .map file and compare with Flash memory ranges in the Memory Map for complete flash memory occupation.

    Further reading of each document should give you a better idea for the functional purpose of each section (.text, .cinit, .econst, .reset etc.) and the overall memory structure of the device if you are looking for that information as well.

    Regards,

    Gautam