i try to make the demo code for SD card work but i get the error
Failed to initialize the card (ESP_ERR_INVALID_STATE). Make sure SD card lines have pull-up resistors in place. attached is my schematic for the SD card,
I (1246) SD_CARD_TASK: Initializing SD card
I (1246) SD_CARD_TASK: Using SPI peripheral
I (1250) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1281) gpio: GPIO[23]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1281) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1289) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
SD card driving with SPI
SD card driving with SPI
- Attachments
-
- sd_schematic.PNG (119.32 KiB) Viewed 7454 times
Re: SD card driving with SPI
no one can helf please
Re: SD card driving with SPI
Sorry, but what does SCL mean?
-
- Posts: 37
- Joined: Mon Aug 28, 2017 10:25 am
Re: SD card driving with SPI
Hi m3ayko83,
We can't tell exactly what's the problem from the information you given. Personally I guess it's a driver initialization issue.
Can you provide your code and the complete log for us to help you?
We can't tell exactly what's the problem from the information you given. Personally I guess it's a driver initialization issue.
Can you provide your code and the complete log for us to help you?
Re: SD card driving with SPI
i'am using the sd card example code from the IDF and i get this error after init, it seems that the GPIO not correctly configured.
Who is online
Users browsing this forum: Bing [Bot], Gaston1980 and 113 guests