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
LittleFS mount fails (error -22) #36986
Comments
Is this an out-of-tree board? The in-tree Have you configured the SPI pinmuxes? Note that although we have started populating Kinetis board devicetrees with pinmux information, the drivers don't use it yet. You'll need to configure pinmuxes in If you've done this already, can you try increasing the SPI logging level and verifying bus activity with a logic analyzer? |
Thanks for your reply! Yes, this is an out-of-tree board, and I've already modified my pinmux.c, to have SPI on the correct pins, and SPI debug log shows a lot of activity. Unfortunately I don't have a logic analyzer on hand so I cannot easily check the content of the packets, but with a four channel scope I was able to verify that bidirectional communication happens between the MCU and the Flash. I can also read and write the contents of the flash using the flash_map API |
@MaureenHelm any updates on this? |
@de-nordic Any guidance? Can you take a look at the LittleFS configuration? |
@marcsekz Would you be able to dump the SPI NOR, after format, and attach it here? |
Have you correctly set |
@de-nordic Sorry I'm out of office now and don't have access to the hardware, but I hope I can test your suggestion (and create a dump) on the coming week. |
@marcsekz have you had an opportunity to try the suggestion? |
@marcsekz Have you had a chance to follow up? |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Closing due to lack of response from submitter per policy |
Describe the bug
Mounting a LittleFS filesystem fails with error code 22. The filesystem should be mounted from an SPI NOR flash, which I believe is properly configured, since using the flash_map API I can access and modify the contents.
To Reproduce
I'm trying to run the LittleFS sample propgram.
I'm using the Kinetis K22 platform, in the devicetree I've mounted the SPI NOR flash:
I'have also added an fstab entry:
My testing process:
Expected behavior
Calling mount should mount the filesystem.
Impact
I cannot continue with the project without a filesystem.
Logs and console output
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: