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
  • Yeah, I also think it might be a problem with the board, what's weird to me is it was working just fine up until a little while ago. And I really need to fix this issue with the board, since I have to get 200 boards ready for production and there were only 200 boards fabricated in China(yeah, I know it's a really bad idea, but it wasn't me who decided the quantity). I just thought something in the firmware could be the culprit.

Children
Related