Hi,
Am trying to store the data fetched through ble scanning to the flash memory of the nrf52840 DK. So I have been making use fo the flash_storage example in the SDK/examples/peripherals.
rc = nrf_fstorage_write(&fstorage,0x3f000 + 10, m_hello_world, sizeof(hello_world), NULL);
APP_ERROR_CHECK(rc);
This throws error .
If I change the above code to
rc = nrf_fstorage_write(&fstorage,0x3f000, m_hello_world, sizeof(hello_world), NULL);
APP_ERROR_CHECK(rc);
This code , doesn't throw error. I want to auto update the location for storing the data into flash memory, can anyone help me out in this issue.
Thanks,