Persistent storage

Hello,

I have develop a solution that uses openThread with UDP. I want to keep in memory the UDP address of the last device that communicates with me. Thus in case of reset, my device will join again the network and send a sort of "ping" message to this UDP.

Sadly I have hard time storing this simple data. What is the simplest/best option ?

I have tried to use the nvmc of the nrfx library to write my data in the UICR register. But I have a problem: when doing an erase of the uicr register, firmware is crashing (in the z_arch... file so it gives me no hint).

Can you help on this ?

Thanks !

Related