Distance measurement nrf_dm_high_precision_calc() out-of-memory

Changelog for nRF Connect SDK v2.2.0 mentions that:

What exactly are the memory requirements of this function?

On NRF52833 I can see that the function starts to return NaN when the RAM size of my applications is around 117408 B of 128KB. When I reduce the size to 112924 B it is still ok...

I would like to know the exact RAM requirements of nrf_dm_high_precision_calc() so I have a target value to optimize my application memory usage to.

Parents
  • Hi,

    I am afraid there are no exact memory requirements, since the consumption of heap memory (and time) depend on the quality of the ongoing measurement.

    The recommendation is to allocate as much RAM as possible to the heap. If you see a lot of NaN results, then the allocated heap is most likely too small for your use case, or other parts of your application may be competing for the heap.

    Regards,
    Terje

Reply
  • Hi,

    I am afraid there are no exact memory requirements, since the consumption of heap memory (and time) depend on the quality of the ongoing measurement.

    The recommendation is to allocate as much RAM as possible to the heap. If you see a lot of NaN results, then the allocated heap is most likely too small for your use case, or other parts of your application may be competing for the heap.

    Regards,
    Terje

Children
No Data
Related