Skip to content
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

Question on SPIFFS_ERR_BAD_DESCRIPTOR(-10010) error #282

Open
SSaiPrasad7 opened this issue Nov 8, 2021 · 1 comment
Open

Question on SPIFFS_ERR_BAD_DESCRIPTOR(-10010) error #282

SSaiPrasad7 opened this issue Nov 8, 2021 · 1 comment

Comments

@SSaiPrasad7
Copy link

SSaiPrasad7 commented Nov 8, 2021

Hello spiffs team,
I am a beginner to the file system. I am working on Giga device(GD25Q20B) NOR Flash(2M-bit)(256KB).
The flash has

  • Block size: 64kB
  • Sector size : 4KB
  • Page size : 256 bytes

I integrated spiffs with SPI low level driver but facing an issue with reading and writing into the file. Low level driver is working fine. While creating the file, the reading and writing is not happening.

Error log

page index byte len:         256
object lookup pages:         4
page pages per block:        256
page header length:          9
object header index entries: 52
object index entries:        61
available file descriptors:  2
free blocks:                 0
mount res: 0 
errno -10010
errno -10010
--> � <--

Please let me know how to resolve this problem.
@baboundu81 @igrr @maichaell
Thanks in advance for your help.
Example code: https://gist.github.com/saiprasadsamudrala/7f8a794786110565acd87222c069e735.

@SSaiPrasad7 SSaiPrasad7 changed the title SPIFFS_ERR_BAD_DESCRIPTOR(-10010) error Question on SPIFFS_ERR_BAD_DESCRIPTOR(-10010) error Nov 12, 2021
@SSaiPrasad7
Copy link
Author

SSaiPrasad7 commented Nov 12, 2021

Hi @pellepl,
Please let me know how to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant