Page 1 of 1

File system for NOR flash

Posted: Mon Jan 18, 2016 1:06 pm
by Gusar
Could you advice any file system to include in our project for IoT application?
I hope that somebody on this forum had faced the similar problems.

We are looking for solution allows to make three function: write, read, erase. The system should works fast and be
insensitive to power failures.


Firstly, we tried to use Coffee file system https://github.com/contiki-os/contiki/w ... em-example
But it works too slow.
Also we tried out to use the UBI FS / JAFFS systems from Linux. But actually we haven't enough RAM for this systems.

Therefore we are looking for something else.

The our prototype has NOR flash (64 Mb). Controller stm32f3*.

Re: File system for NOR flash

Posted: Wed Jan 20, 2016 10:33 pm
by Giovanni
Hi,

OK, no other answers. I don't have a ready solution, are you sure there isn't something else that could be adapted? by searching on Google I get several results.

Giovanni

Re: File system for NOR flash

Posted: Fri Mar 04, 2016 7:28 am
by kreyl
Why not FatFS? I have it working smoothly at stm32f072 with 16kB of RAM, for a 8 MB so8-size flash.

Re: File system for NOR flash

Posted: Fri Apr 08, 2016 7:58 pm
by avrhack
kreyl wrote:Why not FatFS? I have it working smoothly at stm32f072 with 16kB of RAM, for a 8 MB so8-size flash.


Won't there be no wear levelling, so it will kill the sectors that are beat most at the start of the FS? That's why there are specialist FS for flash......

Re: File system for NOR flash

Posted: Fri Apr 08, 2016 8:04 pm
by Giovanni
I think that FatFS could be used on top of an EEPROM emulator that does wear leveling.

Disk blocks don't need to be at fixed addresses in flash but written sequentially replacing old copies, reaching the end of the flash bank would trigger a garbage collection involving a flash erase.

I had plans for a flash FS but I dropped it, a generic EE emulator would be more useful.

Giovanni

Re: File system for NOR flash

Posted: Fri Apr 08, 2016 8:10 pm
by avrhack
Giovanni wrote:I think that FatFS could be used on top of an EEPROM emulator that does wear leveling.


Agreed - just not on the raw device.

Re: File system for NOR flash

Posted: Mon May 16, 2016 5:17 pm
by arm999
I'm successfully using SPIFFS with STM32 using some of this code. I'm sure it can be ported to ChibiOS.

Also, there is the Yaffs filesystem.