Hi,
I am saving data in flash memory but when I read after restarting the device it shows FF.
How can I read from flash after restarting the device? and how can I check that there is already data?
Thanks
Hi,
I am saving data in flash memory but when I read after restarting the device it shows FF.
How can I read from flash after restarting the device? and how can I check that there is already data?
Thanks
My initial guess is that you are not waiting for the read finished callback before you print what you have read. Can you share some code showing how you read the data? What are you using to read? Fstorage? FDS? I suggest you check out the examples flash_fstorage or flash_fds, depending on which one you use.
Best regards,
Edvin
So you need to move the flash write function (or at least the wait_for_flash_ready()) to outside the interrupt.
I have removed the call after the device connected. Now when I write on characteristics 10 I call these functions but not getting reading results from memory. :( (I want that I write data on characteristics and save in flash memory)
probably the same issue.
Muqarrab said:Now when I write on characteristics 10 I call these functions but not getting reading results from memory.
What do you mean? Is it stuck in the wait_for_flash_ready()? (try to debug). If so, where are you calling this function from? Is it from an interrupt? If so, try to set some flag in the interrupt that you use to call this function from your main() loop to move it out of the interrupt.
probably the same issue.
Muqarrab said:Now when I write on characteristics 10 I call these functions but not getting reading results from memory.
What do you mean? Is it stuck in the wait_for_flash_ready()? (try to debug). If so, where are you calling this function from? Is it from an interrupt? If so, try to set some flag in the interrupt that you use to call this function from your main() loop to move it out of the interrupt.