Mynewt FAQ - File System¶
nffs Setup¶
Q: I’m struggling to find any examples for nffs, especially how do I setup the nffs_area_desc correctly.
Where do I set it up in the BSP especially?
A: It’s all taken care of in nffs_pkg_init. As long as the nffs package is included in the project, it
should initialize itself. A few things you might find helpful:
The
NFFS_FLASH_AREAsyscfg setting specifies the flash area that contains the file system.The BSP’s
bsp.ymlfile defines all the flash areas in the system, including the one specified in “1.” above.