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

old data gets overwritten in fds when i read the data after setting a new one.

I have written a flash code using fds in which i am trying to save the data 7pages(1024 each). I have defined array of record key and fie ID for it.The problem it saves for first time  but then due to some pointer problem or something, it gets old data and overwrites in it. Here is the flash file.

Parents Reply
  • Yes it does create a new record with same File id and key, but i am initialising all descriptors and token every time i do a read or write.So why on read would i get the old data because it is invalidated.And also now i am using one file ID and also one page of 8kb to store all the data. I have seen this issue is also faced by other people here and i don't think they've got the solution.

Children
Related