pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
196 stars 167 forks source link

SD card unstable after deepsleep #522

Open ajoeleht opened 3 years ago

ajoeleht commented 3 years ago

It happens on:

An UHS speed class 1 (U1) SD card can be mounted, listed, write and read apparently endlessly until machine.deepsleep() is executed. After this OSError 19 ENODEV is issued. The device has to be unplugged from power source and then the card works again (till next deepsleep).

Error occurs on Expansion board 3.1 very commonly. The error is very common on Pytrack as well, but sometimes it might take longer (several hours / deepsleep cycles) for error to occur.

This error does not appear with U3 cards, however, U1 is well beyond the speed needs for a data logger type device.

Thanks!