SD_MMC incompatible with Feather Music Maker?
Posted: Fri Jul 02, 2021 4:52 pm
Hello there,
The goal
My goal is to increase the writing speed on the SD card OTA to upload huge WAV files, and while the SD library works, the speed is kindof mediocre with around 50kb/s using a modified version of https://github.com/G6EJD/ESP32-8266-FIle-Upload + a custom buffer. The reason i'm trying use SD_MMC library is that it's potentially much faster than the SD library:
https://www.youtube.com/watch?v=e1xOgZsnAuw
https://www.reddit.com/r/esp32/comments ... alk_to_an/
The specific problem:
While using an Esp32 HUZZAH Feather board connected to a Featherwing Music maker, it would seem the SD_MMC cannot function properly?
Here, SD.MM.begin() always fails.
The error message I get is this one:
I have also tried changing some pins INPUT_PULLUP,'s and play with the functions parameters for 1-4 bit mode, but without success.
Platformio config:
[env:esp32]
platform = espressif32
board = featheresp32
framework = arduino
The goal
My goal is to increase the writing speed on the SD card OTA to upload huge WAV files, and while the SD library works, the speed is kindof mediocre with around 50kb/s using a modified version of https://github.com/G6EJD/ESP32-8266-FIle-Upload + a custom buffer. The reason i'm trying use SD_MMC library is that it's potentially much faster than the SD library:
https://www.youtube.com/watch?v=e1xOgZsnAuw
https://www.reddit.com/r/esp32/comments ... alk_to_an/
The specific problem:
While using an Esp32 HUZZAH Feather board connected to a Featherwing Music maker, it would seem the SD_MMC cannot function properly?
Here, SD.MM.begin() always fails.
- if (SD_MMC.begin())
- {
- Serial.println("WOW!");
- return true;
- }
- 12:20:00.969 > E (1057) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
- 12:20:00.969 > [E][SD_MMC.cpp:85] begin(): Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
- pinMode(13, INPUT_PULLUP);
- pinMode(15, INPUT_PULLUP);
- pinMode(2, INPUT_PULLUP);
- pinMode(14, INPUT_PULLUP);
- if (SD_MMC.begin("/sd", true))
- {
- Serial.println("WOW!");
- return true;
- }
Platformio config:
[env:esp32]
platform = espressif32
board = featheresp32
framework = arduino