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

sd_flash_write() not generating system event

hi,
I have used sd_flash_write() in my code. The scenario is that sd_flash_write() will be called after a DISCONNECT event. And it would wait for system events : NRF_EVT_FLASH_OPERATION_SUCCESS / NRF_EVT_FLASH_OPERATION_ERROR. Once either of the system events occurs, it will re advertise. In short it will wait for flash write completion before it could go for advertising again. But the observation is that sd_flash_write() is not not generating system events and hence the logic in my code don't allow the BLE to re advertise. I tried to read the flash location using JLink and I found that the location is written successfully with desired value without producing the events.I am wondering what could be the reason for not producing the event. In between, I am not using device manager and pstorage module is also absent.
Thank you and regards

Related