marcoe87 opened a new issue #2756:
URL: https://github.com/apache/mynewt-core/issues/2756


   I have set up a simple test storage composed of two sectors of 256 bytes 
each.
   My test program at first run fills up the fcb with random length (1-16 
bytes) data entries as long as append function returns FCB2_OK. 
   At second run my test program wants to read back all stored data but 
sometimes fcb2_init() returns FCB2_ERR_FLASH.
   According to my tests this happens when fcb2_read_entry() never returns 
FCB2_ERR_NOVAR because free space between data and metadata parts is less than 
metadata length (or is not aligned to it) in every sector and this function 
walks back until before the start of the flash generating FCB2_ERR_FLASH.
   
   I'm attaching a dump where this type of fail happens.
   [flash.zip](https://github.com/apache/mynewt-core/files/7949375/flash.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to