FlashFS / NAND - finit() returns 2

Hi all,

I'm trying to get a proof-of-concept FlashFS implementation on the Embedded Artists LPC2478 OEM board (using my own baseboard). The project is quite advanced and basic things like memory configuration can probably be considered working.

I have managed to get a RAM disk working as far as running finit(), fformat() and ffree() without problems. I'm using the NAND_LPC24xx.c driver and have set up File_Config.c for the device (K9F1G) also enabling software ECC. For now I am linking retarget.c but without STDIO, though I don't suspect that has any bearing on this particular issue. But I just get finit() returning 2, and if I ignore this error it locks up somewhere in fformat().

Having searched this forum a little, I have also implemented some just-in-case benign mods:
* Set up heap (8K).
* Make sure Ethernet and USB peripherals are powered.
* I am not using Microlib.

I am using v4.23 MDK Pro.

I guess my first question is does anyone have previous experience of FlashFS / NAND / EA LPC2478 OEM and can they offer any help? If not, does anyone have any hints?

Many thanks,
Mike Page.

More questions in this forum