I have been using fds for flash saving and read. I have used fds_record_write(..) with no errors and proper readings on the just before performing a 4th fds_record_write(..) but this one gives an error of 0x03. I have changed the FILE_ID and RECORD_KEY but to no avail it still gives the error.
What I do is first rc = fds_record_find(FILE_ID, MAJOR_KEY , &desc, &tok); and see if there is any record and if not then I write or else I update.
What could be causing the error 0x03 on performing another write just like the previous ones in the same code. Is there a limit to number of writes in FILE_ID?
Edit: Is it possible due to queuing multiple writes it is causing it to malfunction? I am not sure how to check if something has been written or not.