This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL Flash-FS EFS rewrite first sector

Hi, all!
I use RL Flash-FS Embedded File System for SPI NOR flash SST25. Sector size is 64 kB. Chip size is 8 MB.
I am trying to write many files with big size, in order to fill full flash size. But EFS doesn't write any data to all page and always rewrite first sector. So, first files are rewritten last ones.

I don't undestand what the problem is. Please advice.

Best regards,
Konstantin

Parents Reply Children
  • Thanks Per Westermark for advice. I check this idea and Yes, the driver code send correct address, I sure. I logged that information:

    I  adr=0x0000ee0c  // write a new filename
    I  adr=0x0000fe04  // write allocation info for filename
    I  adr=0x0000ee18  // write 6 bytes to file
    I  adr=0x0000fdfc  // write alloc.info for file's data
    I  FlashFS: find file 5200 // open old file
    I  adr=0x0000ee20  // write 2420 bytes to file 5200, 0xee20 + 0x0974 = 0xf794. so the free space is enough
    I  adr=0x0000fdf4  // write alloc.info
    I                  // after last writing the allocation info of all files became corrupted
                       //
    I  adr=0x0000fffc  // alloc.info rewriten
    I  adr=0x00000000  // write filename for next file in first sector
    I  adr=0x0000fff4
    I  adr=0x00000010
    I  adr=0x0000ffec