We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Does the driver code send correct address information to the SPI-connected memory chip, so erases and flash writes happens on the expected flash addresses?
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