Hi there,
I'm working on a BLE project using the nRF52832 and am having trouble implementing flash storage. I'm using SDK 132 v6.1.1, and the flash storage library to save a few parameters, but am having trouble with finding the correct flash address and range. I've referenced the graphic provided in the info center library description (see link above), which implies that there is usable memory near 0x80000, however when I try to write to address in this vicinity it either returns the NRF_ERROR_INVALID_ADDR error or interrupts some other application process (such as power management). I've also had it hang in the following function, which I suspect is due to the flash location being used by some other part of the application:
void wait_for_flash_ready(nrf_fstorage_t const * p_fstorage) { /* While fstorage is busy, sleep and wait for an event. */ while (nrf_fstorage_is_busy(p_fstorage)) { // nrf_pwr_mgmt_run(); } }
What is the best way to determine usable flash storage locations? Any help would be much appreciated.
Thanks,
Charlie