I connected a SD card reader module to the Pico. I set it up the following way:
var spi = new SPI();
spi.setup({mosi:B14,miso:B15,sck:B13});
E.connectSDCard(spi, A8);
I experience in some situations that I receive "ERROR: Could not open file : DISK_ERR" errors for files that are definitely existing. After receiving the error message I have to set the above mentioned settings again to do subsequent file access.
What can cause this error? How can I handle it, so that my software automatically sets the configuration again when it got lost? I thought it could be a problem with E.unmountSD(), so I removed all unmounts in my code, but that didn't work.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I connected a SD card reader module to the Pico. I set it up the following way:
var spi = new SPI();
spi.setup({mosi:B14,miso:B15,sck:B13});
E.connectSDCard(spi, A8);
I experience in some situations that I receive "ERROR: Could not open file : DISK_ERR" errors for files that are definitely existing. After receiving the error message I have to set the above mentioned settings again to do subsequent file access.
What can cause this error? How can I handle it, so that my software automatically sets the configuration again when it got lost? I thought it could be a problem with E.unmountSD(), so I removed all unmounts in my code, but that didn't work.
Best,
Tobias