SPIFFS (Flash File System) on the P2
I have been able to compile SPIFFS on the P2 and build a file system on the last 512K bytes of the flash chip on the P2 Edge.
I ran a test and was able to create a file and then read the contents back.
Have not done any extensive testing but just got it to compile.
It takes over 80K bytes of code to make it work.
It took me several days of working through the Typedef's from hell to finally get it to compile.
All the code is written in C and I don't think it will be possible to move it to SPIN. Far to complex to convert.
One of the features of SPIFFS is the ability to package up a number of files and then write that file system to flash for later access. That's my next task.
Attached are all the files need to compile and test SPIFFS on the P2.
Mike