-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFFS requires 1-byte unaligned accesses to flash #1583
Comments
…s#1583) The new linux timer port uses signals as callbacks for timers. The signal API expects a greater than zero timeout so in the zero timeout case we pass 1. Signed-off-by: James Prestwood <[email protected]>
lowering, a limitation rather than a bug |
CC @utzig |
I fear this limitation is going to become more significant. I'm already seeing several devices that have a write alignment of 512. I don't know if this can be address with NFFS, or if there is possibly another filesystem that might handle these devices? |
AFAIK NFFS hasn't seen any work recently and we should probably deprecate it. Instead, littlefs, which is already integrated into Zephyr, should be a good replacement. I assume that littlefs doesn't have this limitation @pabigot @nvlsianpu ? |
littlefs allows you to specify the size (and implied alignment) of both read and program operations. https://github.com/zephyrproject-rtos/zephyr/blob/master/tests/subsys/fs/littlefs/src/testfs_lfs.h and related files show how to configure the filesystem. The default configuration uses 16-byte transfers. |
That's right. NFFS should be deprecated - it has serious bugs by design. |
NFFS support was removed #21793. |
Documented here: https://issues.apache.org/jira/browse/MYNEWT-13
It won't work on devices that cannot access the flash at any address and with 1-byte granularity
The text was updated successfully, but these errors were encountered: