Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 6 months ago.
SPIF Block Device, file system and error codes
Hi, I am looking at SPIFBlockDevice using the nRF52 development kit and an external SPI flash (IS25LP080D). I can execute the blockdevice erase, program and read commands successfully. However, I get an error ("Unknown error (-4002)") when I initialise the block device .Also "Unknown error (-4001)" on deinitializing the block device. Same when I try to mount the file system - I am using the LittleFileSystem. I can't find any reference to this error code. Is anybody familiar with this? Any guidance would be greatly appreciated. Thanks.
1 Answer
5 years, 6 months ago.
Hi Steve,
There's a LittleFS example available here that you can try:
On your first run, the first call to mount() should fail as there won't be a file system found. Does the call always fail?
It looks like the error codes from mount() are coming from here:
Regards,
Ralph, Team Mbed
Hi Ralph
When operating in SPIF mode, the issue appears to be "SPIF_BD_ERROR_PARSING_FAILED" when trying to parse the SFDP headers. The IS25LP080D uses the standard JESD216 so I'm not sure what we could be doing wrong!?
posted by 14 Nov 2018Hi Ben,
did you manage to solve the problem? We have the same behaviour but with a Winbond W25Q32FW chip on a custom nrf52832 board. Reading the Manufacturer and JDEC Device ID during the initialization of the BlockDevice works great, but fails when it comes to the SFDP headers.
posted by 17 Mar 2019
Have you sloved it?I meet it like this “Mounting the filesystem... Fail :( No filesystem found, formatting... Fail :( error: Unknown error (-5005)”,Can you help me?
posted by Carmelo Ning 21 Jan 2019