I purchased the esp-wrover-kit from Adafruit last week. I am trying to get the microSD card working (Arduno framework). When I do SDI.begin() I just get these messages:
[E][sd_diskio.cpp:123] sdSelectCard(): Select Failed
[E][sd_diskio.cpp:775] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[E][sd_diskio.cpp:123] sdSelectCard(): Select Failed
I have seen various Esspressif Get Started guides that warn you cannot use JTAG debugging if you need to use the SD functionality. So I pulled the JTAG header jumpers. I saw guidance to jumper IO0 <-> IO2, to enable the SD for use although this doesn't work for me. All I really need is a simple checklist of what to do to get the onboard microSD to work.
It would also be nice to know the version of the board since the getting started docs differ somewhat depending on that.
Thanks, Stephen
esp-wrover-kit - using microSD card, and finding kit version
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- sarogersz
- Posts: 3
- Joined: Thu Dec 08, 2022 7:19 pm
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: esp-wrover-kit - using microSD card, and finding kit version
Is this #3384 the WROVER KIT your purchased?
https://www.adafruit.com/product/3384
Can you post the source and library releases you are compiling with?
https://www.adafruit.com/product/3384
Can you post the source and library releases you are compiling with?
- sarogersz
- Posts: 3
- Joined: Thu Dec 08, 2022 7:19 pm
Re: esp-wrover-kit - using microSD card, and finding kit version
mikeysklar:
I have attached the source to this post.
Please let me know what "library releases" you are referring to and how to provide those to you.
Since my code is large and multi-faceted I cut 90% of the source out in order to make it easier to analyze and to eliminate any collateral impacts. The SD behaves the same - doesn't work.
Thanks for your help.
Stephen
I have attached the source to this post.
Please let me know what "library releases" you are referring to and how to provide those to you.
Since my code is large and multi-faceted I cut 90% of the source out in order to make it easier to analyze and to eliminate any collateral impacts. The SD behaves the same - doesn't work.
Thanks for your help.
Stephen
- Attachments
-
- datalogger2_esp32.zip
- (132.03 KiB) Downloaded 7 times
- sarogersz
- Posts: 3
- Joined: Thu Dec 08, 2022 7:19 pm
Re: esp-wrover-kit - using microSD card, and finding kit version
Yes to your first question - this is adafruit #3384.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: esp-wrover-kit - using microSD card, and finding kit version
espressif offers two card examples. One is SDMMC and the other SPI based. Have you looked at these?
https://github.com/espressif/esp-idf/bl ... ple_main.c
https://github.com/espressif/esp-idf/bl ... ple_main.c
There is a helpful thread that shows some simple example code of others struggling with the Arduino code on this hardware.
https://github.com/espressif/arduino-esp32/issues/1131
https://github.com/espressif/esp-idf/bl ... ple_main.c
https://github.com/espressif/esp-idf/bl ... ple_main.c
There is a helpful thread that shows some simple example code of others struggling with the Arduino code on this hardware.
https://github.com/espressif/arduino-esp32/issues/1131
Code: Select all
#include "SD.h"
void setup() {
Serial.begin(115200);
SPI.begin(14, 2, 15, 13);
if(!SD.begin(13)){
Serial.println("Card Mount Failed");
return;
}
uint64_t cardSize = SD.cardSize() / (1024 * 1024);
Serial.printf("SD Card Size: %lluMB\n", cardSize);
}
void loop() {}
Please be positive and constructive with your questions and comments.