rcmz
Member
Hello, I'm trying to make an portable music player with a teensy 3.6.
I'm having some trouble with the builtin sd card reader.
Most of the time, sd begins fails with the following errors codes :
0x24 (SD_CARD_ERROR_DMA - DMA transfer failed)
0X08 (SD_CARD_ERROR_CMD10 - Read CID data)
Sometimes, out of nowhere, it works. It seem to have a better chance of succeeding if
i try just after letting my teensy unplugged for a long time (maybe it's tired ?).
To me that sounds like a hardware / wiring problem, but I'm new to this stuff.
My teensy is soldered to an audio adaptor board and connected to a ssd1351
oled screen through a breadboard.
Here is my test code :
Do you have any idea of what could be going on ?
I'm having some trouble with the builtin sd card reader.
Most of the time, sd begins fails with the following errors codes :
0x24 (SD_CARD_ERROR_DMA - DMA transfer failed)
0X08 (SD_CARD_ERROR_CMD10 - Read CID data)
Sometimes, out of nowhere, it works. It seem to have a better chance of succeeding if
i try just after letting my teensy unplugged for a long time (maybe it's tired ?).
To me that sounds like a hardware / wiring problem, but I'm new to this stuff.
My teensy is soldered to an audio adaptor board and connected to a ssd1351
oled screen through a breadboard.
Here is my test code :
Code:
include <SdFat.h>
void setup() {
Serial.begin(9600);
while (!Serial);
SdFat sd;
if (!sd.begin(BUILTIN_SDCARD)) {
sd.initErrorPrint();
} else {
Serial.println("success !");
}
}
void loop() {
}
Do you have any idea of what could be going on ?