I use FDS library of SDK13.0.0.
As wrote in the title, pages_init() returns NO_SWAP. Of course, fds_init() returned FDS_SUCCESS initially, so this problem has happened from a certain time.
My FDS settings are below.
・use fds for application data and peer manager
・application data is consist of
・I don't use fds_record_update(). Instead, I call fds_record_delete() and then call fds_record_write() to avoid the case that powering off during fds_record_update() may cause the record which has to be deleted not to be deleted.
Do you know what conditions causes this problem?
Please check if the page tag is intact when you get this error. Should be 0xDEADC0DE 0xF11E01FF for the swap page: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_fds_format.html?cp=4_0_0_3_50_2_1#lib_fds_format_page
I checked the page type of all pages with page_identify(), then all page types are FDS_PAGE_DATA.
Are there 5 or 4 pages that have the FDS_PAGE_DATA tag, and if only 4, what is the page tag value for the page that should have been allocated for swap? Also, are there other parts of the app that uses FSTORAGE/NVMC for direct to access flash (write/erase) that could possibly corrupt the swap page?