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

Where to check NRF_EVT_FLASH_OPERATION_SUCCESS?

Hi Tech Team,

I am using nRF52832 chip and the recent soft device(SD). I want to implement my own file storage and thus using sd_flash_write () andsd_flash_page_erase functionalities of soft device.

I want to check for the success of read or erase? From documentation I understand that the events NRF_EVT_FLASH_OPERATION_SUCCESS and failure events will be generated depending upon the operation. I want to understand where this events will be generated and how to check it? Pointing to any example code would help a lot.

Thanks,

Justin

Parents
  • Hi Justin

    The flash_fstorage example will use the SoftDevice level functions sd_flash_write() and sd_flash_page_erase() functions if the SoftDevice is present by way of the nrf_fstorage_sd.c and nrf_fstorage_sd.h files. You can modify the example to call the sd_flash functions directly as well if you'd like. In that case, you can take a look at the nrf_fstorage_sd.c and nrf_fstorage_sd.h files to see how these functions are implemented.

    Best regards,

    Simon

Reply
  • Hi Justin

    The flash_fstorage example will use the SoftDevice level functions sd_flash_write() and sd_flash_page_erase() functions if the SoftDevice is present by way of the nrf_fstorage_sd.c and nrf_fstorage_sd.h files. You can modify the example to call the sd_flash functions directly as well if you'd like. In that case, you can take a look at the nrf_fstorage_sd.c and nrf_fstorage_sd.h files to see how these functions are implemented.

    Best regards,

    Simon

Children
No Data
Related