When the application is started I get the following error:
<error> peer_manager_pds: Could not initialize flash storage. fds_init() returned 0x860A.
00>
00> <error> peer_manager: pm_init failed because pds_init() returned NRF_ERROR_STORAGE_FULL.
00>
00> <error> app: ERROR 3 [NRF_ERROR_INTERNAL] at C:\Users\Samo\Documents\nRF52_SDK\examples\ble_peripheral\ble_Indu4s_improved3\main.c:2689
00>
00> PC at: 0x0002065B
00>
00> <error> app: End of error report
In my application, I wrote some data in flash. More precisely, I reserved 8kB for my data from 0x2E000 to 0x30000. This is 8kB which means that I have two pages. The first page goes from 0x2E000 to 0x2F000and from 0x2F000 to 0x30000. Because I use the nrf52811 chip (s112) these flash addresses are located at the end of the flash. Now comes the most interesting part. If I erase the flash before peer_manager_init is called then the error does not occur. Due to this fact, I believe that the problem is somehow related to the flash but I do not know what exactly can be the cause of the problem. According to my knowledge the flash addresses above 100kB and not reserved. I will appreciate for help.
err_code = nrf_fstorage_erase(&fstorage, 0x2F000, 1,NULL);
APP_ERROR_CHECK(err_code);
wait_for_flash_ready(&fstorage);
Here is my memory layout. Why such periodicity occurs at the top of flash memory? This periodicity is generated when peer_manager_init() method is called.