This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Erase multiple pages not working(nrf51822)

I want to erase selected pages from the NRFflash memory (Not whole flash).

I have defined one function for NRF memory erase. In that, I have followed following sequence of operations:

for (Number of page erase) {

  1. Set NVMC mode: Erase
  2. Wait for ready flag
  3. Set start address of erase page
  4. Wait for NVMC ready flag

}

Sometimes, I have observed that (by reading through nrfjprog.exe) page content was not erased for few pages. While doing this operation the BLE radio was in the off state.

Am I missing any condition here?

Related