MicroSD card Interfacing with ESP32 -DevKitC board

Rakesh Menon
Posts: 5
Joined: Tue Mar 27, 2018 6:57 am
Location: India
Contact:

MicroSD card Interfacing with ESP32 -DevKitC board

Postby Rakesh Menon » Thu May 03, 2018 5:42 am

Hello,

I am trying to interface a micro SD card (sandisk, 4GB, class-6,HC) with ESP32. I'm using DevKitC (with Wroom32) board for prototyping. To connect SD card to the DevKitC board, I used an SD card adapter board
(catalex, sch : http://file.vishnumaiea.in/hard/micro-s ... le_SCH.png ).
I followed the ESP_IDF git-hub example page ( https://github.com/espressif/esp-idf/tr ... ge/sd_card ) for wiring and the example code. I connected the pull-up resistors ( 10K ) as it was mentioned in the git-hub page. After loading the example code, I'm getting this message : " Failed to initialize the card (264)" " Make sure SD card lines have pull up resistors int place."
I tried removing the voltage level converter IC (SN74LVC125A) and the associated 3.3K resistors from the MicroSD Card Adapter board and connecting SD Card's pins directly, but the outcome was same.
By default the code uses SPI peripheral ( was evident from the output log ). I even tried upgrading from ESP_IDF version 2 to version 3 but it didn't change the result.
I would like to know where exactly it is going wrong for me.

Who is online

Users browsing this forum: No registered users and 180 guests