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

pm_init hides real cause of error

Hi Nordic,

I have recently received an error from pm_init that I have never seen before, NRF_ERROR_INTERNAL. After some debugging, I found it was really due to NRF_ERROR_STORAGE_FULL (I'm not sure how it got to this state).

Why does pm_init hide the true cause of the error?

As a side note: Ideally my code should handle the freeing of memory but, seems a bit silly that if I got the error due to NRF_ERROR_STORAGE_FULL, that I can't use pm_peer_delete or pm_peers_delete to fix the problem because the peer manager is not initialised. Is there a way to free this data without deleting my own data stored using FDS?

I'm using SDK13.0

Related