NRF memory management and FreeRTOS coexistence

We use FreeRTOS with nRF SDK driver library. The driver library is working well because it doesn't dynamically allocate any memory. So I can simple take entire memory block from __HeapLimit below and let FreeRTOS heap to mamage the memory.

However, the NRF_LOG module uses nrf_memobj and nrf_balloc to dynamically allocate memory. And it appears to use memory below __HeapLimit.

Question is: How exactly does it work? How much memory shall I reserve for NRF_LOG and what memory block is safe for FreeRTOS to manage?

Thanks

Qingjun

Parents Reply Children
No Data
Related