File Delete in littleFS results in -22 error

So I have a device on a custom PCB with an nrf52832 and a mx25r1635f, with which I've had quite some trouble already(  File write gives -5 after file size reaches cache size  ). In most of the devices it's working correctly and was working up until a couple hours ago, but now any operation with the Flash takes over 14 SECONDS!, that's ludicrous to me, I tried to delete the files and clear the flash, giving the -22 error, I'm very lost at this point, since I can't delete the files individually, can't clear the flash area. Does anyone know what could be the case happening here? Config information can be found on the ticket I linked.

Parents Reply Children
  • Hi, I tried diving into the zephyr source code to track down the -22 error code problem, in the end I went on this track:
    fs_unlink
    lfs_dir_commit
    lfs_orphaningcommit
    lfs_dir_relocatingcommit
    lfs_dir_splittingcompact
    lfs_dir_split
    lfs_dir_alloc
    lfs_bd_read

    lfs->cfg->read

    but now I don't quite know where to go next, as the api struct has me really lost as to which function it's calling.

    Does anyone know what function I have to track down now?

Related