Hello. Can I use flash_write example functions (nrf_nvmc_write_byte, nrf_nvmc_page_erase) after open channel on background scanning? Regards, PW.
I'm not sure what your application is doing, but if the open channel and back ground scanning involves using the softdevice stack, you will need to use radio notifications to time your accesses using those functions. Alternatively you could use the sd_flash functions that will handle the timing for you.
you cannot access NVMC directly with nrf_nvmc functions if you are using the softdevice, as the time needed to perform the flash operation will interface with BLE activity of the softdevice. Like John mentioned you need to use sd_flash** API available in nrf_soc.h.