- [Zephyr-devel] error while opening file (NFFS)
Re: [Zephyr-devel] error while opening file (NFFS)
Vikrant More <vikrant8051@...>
toggle quoted messageShow quoted text
I worked with your suggestion & it works.
I took reference from zephyr/tests/subsys/fs/nffs_fs_api/src/test_mount.c this file.
On Tue, Mar 13, 2018 at 3:36 PM, Pallala, Ramakrishna <ramakrishna.pallala@...>
The main change is the introduction of mount point which will allow us to have multiple file systems at once. Now the file system mounting responsibility to given
to application and it should tie the backend storage which is intended to use.
We have three examples as of today which demonstrate the usage of file systems API’s:
tests/subsys/fs/fat_fs_api/ => Demonstrate FATFS usage, I would suggest you look into it as it is simple and not many files are there.
tests/subsys/fs/nffs_fs_api/ => Demonstrate NFFS usage
tests/subsys/fs/multi-fs/ => Demonstrate both FATFS and NFFS usage together.
Look into the test_*_mount.c files in these tests which will show how to mount a file system from Application.
This feature is destined for v1.12 release and I will add the documentation accordingly.
I'm not able to understand it. Why Zephyr did these type of changes when there is no demo examples for modules like NFFS ?
Please help to solve this issue. In
tests/subsys/fs/nffs_fs_api/ there are multiple files ....which one to refer ??
What is proper sequence for initialization ?
Please give me sample code to open, read, write & close for file using NFFS as per latest patches.
On Mon, Mar 12, 2018 at 4:06 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote:
Zephyr VFS patches got merged yesterday. These changes are not part of v1.11 but got merged yesterday.
Please refer to the changes needed to comply with VFS under tests/subsys/fs/nffs_fs_api/ on the latest
I upgrade to Zephyr v.1.11 & getting this error while opening file using NFFS
[general] [ERR] fs_open: fs_open:mount point not found!!
error -2 while opening test.txt
It was working perfectly fine with previous version.
Could anybody help me to solve this issue ?
Join firstname.lastname@example.org to automatically receive all group messages.