Re: NRF52 : use of NFFS file system
Carles Cufi
Hi Laurence,
I am copying a couple of people that might be able to help with NFFS config.
Carles
From: users@... <users@...>
On Behalf Of Laurence Pasteau
Sent: 27 August 2018 10:06 To: users@...; devel@... Subject: [Zephyr-users] NRF52 : use of NFFS file system
Hi everybody,
I worked on a board including a NRF52 and use the file system with NFFS but I never succeed in using it correctly.
I have a lot of errors depending on the configuration parameters that I set. I reduce my problem to a little test that only writes in a loop 12 bytes in a single file. It fails very quickly. Sometimes the operation seems good when checking the return value. However the file became a file of size null and a new file with another name appears with the previous file. Then some loops later, there is an error in a return value of the write function.
I tried to modify NFFS configuration. In the two cases when the CONFIG_NFFS_FILESYSTEM_MAX_BLOCK_SIZE is higher and when the global size of the file system is higher ; the test is good during a longer time before failing. If I write 24 instead of 12 bytes or if I write in two files instead of one, the issue comes sooner.
I think something in my configuration (or in my software) is wrong. If someone can help me it would be very helpful.
Attached is the little test and the conf file. To reduce the time before failing, I change the file system size to 0x2000.
Here is my configuration (I don't use MCU_BOOT) :
In the dts file : partitions {
In the conf file : CONFIG_SOC_FLASH_NRF=y
In the CMakeLists.txt : set(BOARD nrf52_pca10040) target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/ext/fs/nffs/include)
Thanks in advance for any help.
Regards, Laurence
|
|