Large flash file system on NANO54415
Posted: Wed May 07, 2014 1:55 pm
I'm trying to set up a 3MB file system in the flash on a NANO54415, but I'm getting errors on the mount and format commands when I try to make the file system larger than about 560kb.
I'm basing this off the EFFS-STD-HTTP example for the nano.
When the file system size is around say 512kB:
fd_mountstd() will return 2 and then the drive will be formatted properly
When the file system size is larger:
fd_mountstd() will return 3
then when I try to format the drive
fd_format() will return 1
All I'm doing is modifying the FS_SIZE macro of MX25L6406E.h
I don't understand what the return code from the fd_mountstd call means.
The EFFS error code it matches up with is "F_ERR_INVALIDDIR", // 3
I'm wondering if since the file system is larger I need to allocate more than 2 descriptor blocks, or if there is some other setting I need to modify. I know the file system isn't overlapping my program space because I modified the memory range in Compcode.
Anyone have any ideas? Anyone successfully used a large file system in flash before?
I'm basing this off the EFFS-STD-HTTP example for the nano.
When the file system size is around say 512kB:
fd_mountstd() will return 2 and then the drive will be formatted properly
When the file system size is larger:
fd_mountstd() will return 3
then when I try to format the drive
fd_format() will return 1
All I'm doing is modifying the FS_SIZE macro of MX25L6406E.h
I don't understand what the return code from the fd_mountstd call means.
The EFFS error code it matches up with is "F_ERR_INVALIDDIR", // 3
I'm wondering if since the file system is larger I need to allocate more than 2 descriptor blocks, or if there is some other setting I need to modify. I know the file system isn't overlapping my program space because I modified the memory range in Compcode.
Anyone have any ideas? Anyone successfully used a large file system in flash before?