You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/01/27 10:19:37 UTC

[GitHub] [mynewt-core] marcoe87 opened a new issue #2756: fcb2 issue when space is almost full

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: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org