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.

CCS/CC3220SF-LAUNCHXL: configTOTAL_HEAP_SIZE for CC3220SF

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF

Tool/software: Code Composer Studio

I was looking at the FreeRTOS.h file generated by CCS. In it there's this line: 

#define configTOTAL_HEAP_SIZE           ( ( size_t ) ( 0x8000 ) )

Which is about 30k of space for the heap. According to the spec sheet, the CC3220SF has 256k of ram. Can I safely increase this value to:

#define configTOTAL_HEAP_SIZE ( ( size_t ) (0x30D40))

I did this an am now able to allocate ram for more tasks. What is the recommended setting for this parameter on the CC3220SF?

Thanks! 

  • Hi,

    General answer does not exist. This depends on requirements of your application.

    If you have big heap, you will have enough space for you dynamically allocated variables/buffer. But you may not have enough space for your static variables. Please use Memory Allocation tool in CCS to determine how much of static memory need your code.

    Jan

  • Hi Jan,

    Here are the results from that tool. So is the story that, from this graphic, I have 47k left over for heap?

    Thanks! 

  • Hi,

    You have 47kB unused RAM. You can extend your heap or use some static variables. Choice is up to you.

    For detail information please click to SRAM...

    Jan

  • I'm sorry, I didn't realize the tool factors in the heap size! That's great! To get a better view of things, here is what the tool reflects if my heap size is zero:

    If I set heap to 200k