nRF Distance measurement using nrf_dm_high_precision_calc()

Hello all,

I'm using the sample for distance measurement nrf_dm. I'm using the ncs sdk 2.2.0, with toolchain 0.15.1. Currently the sample runs without any change, but now I'm trying to increase the accuracy of the system by changing the dm calculation function from nrf_dm_calc to nrf_dm_high_precision_calc. However, after flashing the devkit that I'm using (nrf52833dk) the system generates a fatal error:

E: Faulting instruction address (r15/pc): 0x0003cee6
E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0

Does anyone has the same problem? What's the reason?

Thank you for your time!

Parents Reply
  • Hi  , thank you for your prompt reply. Yes, I have been able to make it work meanwhile. 

    Now I have another question, if I understood correctly, the dm module makes has a initial synchronization phase, and after that an initiator requests a distance measurment to the other device who acts as reflector and answers to it with the necessary data. Is it possible to force a device (for instance "DEVICE A") to always be the initiator and the "DEVICE B" to always be the reflector?

Children
Related