Hi,
Is there a possibility of race condition when writing and reading using nrf_fstorage_write and nrf_fstorage_read?
I have a very strange bug, when writing to an address, and after that, reading invalid data from another address.
Thanks!
Hi,
Is there a possibility of race condition when writing and reading using nrf_fstorage_write and nrf_fstorage_read?
I have a very strange bug, when writing to an address, and after that, reading invalid data from another address.
Thanks!
Hi,
It's the application's responsibility to ensure the data is ready before it's read with nrf_fstorage_read(). This means you always have to wait for a write to be completed before you can read it back again. Calling nrf_fstorage_read() is basically the same as calling memcpy().
Best regards,
Vidar