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

Status bit for sd_flash_write()

Hello,

I am using the sd_flash_write function. If I use this function without the nrf_delay_ms() function (see code below) the data is not being written.

	sd_flash_write((uint32_t*)addr, (uint32_t*) &data, 1);

	nrf_delay_ms(20);

Is there a status bit I can poll or is there an another solution to use this function without the delay?

Thanks.

Parents Reply
  • I don't think this is the answer. Yes, it is a solution to get the flash result using call backs. But the problem here I believe is if we remove the delay and let CPU do something else while waiting for that system event, the write will still fail. What is the proper way to use sd_flash_write? Write and dead loop waiting for the callback to get the event? Thanks

    Paul

Children
No Data
Related