Hi,
I am wondering why PSTORAGE_NUM_OF_PAGES is by default set to 2 in the DFU project.
From what I understand the pstorage_raw.c module is used to update bootloader settings data during OTA. And we only allocate 1 page for this. I tried setting PSTORAGE_NUM_OF_PAGES to 1 and the pstorage_register() returns NRF_ERROR_NO_MEM because m_next_app_instance has changed to 1.
I do not understand how m_next_app_instance changes to 1 since in pstorage_init we initialize it to 0. Could you let me know if I am missing something that is very trivial.
P.S. We are using SDK version 10 for our development.
Thanks in Advance, Arjun