This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT-SN example: HEAP size

Hello, I developed a project starting from MQTT-SN example available in SDK for Thread and Zigbee.

I noticed that publishing and subscribing requires calls to functions as nrf_malloc and nrf_free. I expect that these functions use memory in the HEAP but I noticed that the HEAP size in the project options is set to 0.

So probably nrf_malloc and nrf_free work on another part of the RAM. What part is that? How can I modify its size?

Thanks!

Parents
  • Hello,

    It uses statically allocated memory, so no heap. Please refer to the "Memory Manager"  section of the SDK documentation for more details about this module. The memory size is configurable in sdk_config.

    Best regards,

    Vidar

Reply
  • Hello,

    It uses statically allocated memory, so no heap. Please refer to the "Memory Manager"  section of the SDK documentation for more details about this module. The memory size is configurable in sdk_config.

    Best regards,

    Vidar

Children
No Data