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

Writing/Erasing the flash with radio on and BLE communication on-going.

I want to erase and write the flash while the BLE communication is going on.

In nRF52832 specifications it is mentioned that the CPU is halted while the NVMC performs write/erase operation. So in this case the BLE communication can fail.

Is there any work around for it? Also are there any examples of NVMC operations?

Parents Reply
  • Hi, 

    Justin said:
    how FDS works?

    Please see this Experimental: Flash Data Storage

    FDS uses Experimental: Flash Storage as the backend to write to flash. Flash Storage, in turn, relies on the SoftDevice to execute the write. Flash Data Storage supports synchronous read operations and asynchronous writes. 

    Justin said:
    Where do we give the memory address where I want to start writing

    Please see Flash Storage

    Justin said:
    I am confused when should I use sd_flash*** API and FDS.

    FDS is a file system, and with sd_flash you just write bytes directly to flash.

    you can read about the benefits of FDS here, (the points under "The module has been designed to provide the following benefits: ")

    When the SoftDevice is enabled, flash operations should be done using the sd_flash_xx api. For writing to flash, sd_flash_write() should be used. To simplifying storing data to flash, the library flash data storage (FDS) can be used.

     

    -Amanda H. 

Children
Related