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.

CC2652R7: allocation of dynamic memory from allocated space

Part Number: CC2652R7
Other Parts Discussed in Thread: Z-STACK

Hi,

I want to design a message queue, as I am not aware how long and how much message will come, so I want to restrict handling of message by the amount of RAM available to process it.

i want to have some mechanism where the dynamic memory allocation will be done for some handler or keyword for a specific amount of size, if it exceed it I got some notification or alert.

the reason why I want to have this to limit memory usage from heap and have control on its allocation by an specific feature or functionality.

regards

Jagdish K 

  • Hi Jagdish,

    I assume you are referring to Z-Stack, in which case you would use OsalPort_malloc to allocate memory and OsalPort_free to free it when you are finished.  How you get a notification/alert on exceeding the specified amount is dependent on your message transportation medium.  Are you communicating messages through the OsalPort layer or with an external device using UART/SPI/I2C protocol?

    Regards,
    Ryan