Hi,
I'm troubling using the retention module of Zephyr with NCS 2.6.1 on an NRF52840. I've read the Retention System Documentation of Zephyr but it is not working for me. Here is what I've done:
I've enabled in proj.conf:
My decive tree overlay:
My code:
The output is:
[00:00:00.027,648] <inf> app: Print variable before write: 1234
[00:00:00.028,137] <inf> app: Print variable after write but before read: 0
[00:00:00.028,625] <inf> app: Error read: -134
[00:00:00.029,022] <inf> app: Print variable after read: 0
So it seams the variable is cleared on writing, and I cannot read it back due to an error
The error -134 in errno.h means:
#define ENOTSUP 134 /* Not supported */
Can anyone help me pls; I'm no sure what I'm doing wrong.
Thanks and Best Regards,
Phobios