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.

Two questions about program memory

Hello! I have two question regarding program memory usage:

1- How do I know the address range that my code is using up?

2- I am using the free license of CCS for the MSP430 (16KB). I need to store adicional information, gathered during  code execution, in FRAM. Is this data going to be limited to 16Kb as well, or can I use all that is left? 

Btw I'm using the FR5969.

Thanks!

  • Hi Atiom!

    1)

    Open the linker command file in your CCS project explorer (normally on the left side in your CCS window. If not shown VIEW -> PROJECT EXPLORER. The file is named "lnk_XXX.cmd" where XXX is the name of your project. In that file you can see where the different address-ranges start and end.

    2)

    No, CCS is code-size limited. You can fill your flash/fram during runtime. The compiler only limits your program size to 16kB.

  • Atiom said:
    1- How do I know the address range that my code is using up?

    Looking in the linker .cmd file is not the whole answer. That only tells you what address ranges are reserved for your code.

    You need to look at the linker map file (check CCS doc on how to enable this output). This will tell you what portion of the reserved range your program actually uses. You can then modify the .cmd file to restrict your code to a smaller memory range and then be able to expand the range that data can use.

  • I also think there is a way to add a view/perspective to CCS that shows program memory usage and ram usage.  I used this on a Tiva project.  I think if  you search around on the forums (maybe tiva forums) you can find a post about how to add this.  It was under the menu to add a perspective, but you had to go to others or add more.  It wasn't one of the default ones listed.

**Attention** This is a public forum