I'm developing in VS Code (nRF Connect, SDK 2.3.0 and nRF82840) my own mass storage device on my custom board with a MT25QU512 NOR flash memory. To test the write to the file I wrote a little code starting from the mass template of the nRF Connect in VS Code, but I noticed that if I try to create a file which a length name longer than 8 characters, the fs_open() returns error ENOENT (-2) meaning "when the file path is not possible (bad mount point)" as indicated in the Zephyr API documentation. To know the length limit I wrote a simple test code inside the main function of mass template:
The output for RECORDS_DIRECTORY_PATH = "/NAND:/Records/" is
and the output for RECORDS_DIRECTORY_PATH = "/NAND:/" is
Changing the while file path with directory doesn't impact on the generation of the error: it seems to get out only when the file name exceed the 8 characters. Is this normal? What's goin' on?