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.

Reduce ram usage in MSP430F5528

Hi,  I ported the RTOS over from what was supposed to be a minimal project on the F5529.

I now have a rudimentary start on an RTOS application on my F5528.  However, my ram usage is shown to be 7,314 bytes.  This is 89% of my resources.  I have not been able to find clear information on what steps can be taken to reduce the use of this critical resource.

By poking around in the config file editor (empty_min.cfg), I Found that the memory category had a heap size of 4096 bytes.

When I reduced this to 2048 bytes, saved/cleaned/built, the Memory Allocation tool showed that my project was still using 7,314 bytes. 

So I need guidance on how to reduce the ram usage of my project. 

Thank you.

Roy

  

  • Hi Roy,

    Have you looked at your .map files to see where the memory allocation is going?

    I'm sure other people will also be able to give more suggestions on how to reduce the footprint of TI-RTOS. I am just not familiar enough with all the options available to know what is your best approach to reduce the footprint of TI-RTOS.

    I see from the .cfg filename that you probably started from the minimal empty example in CCS. Did you try compiling the minimal example (without modifications) to see how much RAM it requires? This will give you a good starting point to figure out where the RAM is used.

    Regards,
    Michel
  • Hi Michel,

    Looking in the map file did the trick. I found 3 logger instances hanging around that consumed a total of more than 2Kbytes. By using the gui editor for my cfg file, I was able to disable logging and take these instances out of my .bss section.

    After a clean/build my ram usage is now down to 51%.

    Thank you very much for your help.

    Roy