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.

Z-Stack 2.5.0 - INT HEAP LAN

Other Parts Discussed in Thread: Z-STACK, CC2530

Hi

Can anyone throw some light on the usage of INT_HEAP_LEN. Why it is used? How important is this value to decide the performance of coordinator?

Adarsh

  • INT_HEAP_LEN defines the size of the Z-Stack dynamic memory heap, which is used by the OSAL memory manager. Default settings for this parameter are defined in the OnBoard.h file. The default values have been selected to support a wide range of the out-of-box sample applications - developers are encouraged to adjust the heap size to the specific needs of their application. In general, a larger heap size will reduce the chance of memory allocation failure in a busy system - resulting in less dropped messages and retries.

  • Thanks for prompt response.

    Can you tell me the possible implications/problems if we increase this value.

  • Increasing the size of INT_HEAP_LEN will involve a tradeoff between it, the size of the parameter stack, and memory used for static variables - all of which must fit within the RAM that's available on your processor. For the CC2530, the RAM size is 8K bytes, so a heap length of say 2K bytes is a significant percentage of your available RAM. That being said, after you compile and link your application, take a look at the map file, and distribute any unused RAM where it can increase the system's performance - add it to the heap and/or parameter stack.