And again someone who has problems with esp32 and sd cards
Posted: Mon Jul 31, 2017 9:16 pm
I know, there are a lot of thread about using sd cards with the esp32, but no one of those could help me. Also i found here some circuits, for example from Rudi.
I have this problem since i work with the esp32 and after months its still not working. Not in 1 bit mode and not in 4 bit mode.
First: Here are thee prictures of my setup. The first one is a real picture to show my actual wiring. Second one is what i think i have done. And the last one is not a beauty, but shows nearly exactly my actual circuit.
I use this board.
Lets get started: When i try to flash the SD card and FAT filesystem example i'll get
I think my circuit is wrong or it has something to do with GPIO12. Don't know if i should just do
but i don't know what kind of board this exactly is:
I have this problem since i work with the esp32 and after months its still not working. Not in 1 bit mode and not in 4 bit mode.
First: Here are thee prictures of my setup. The first one is a real picture to show my actual wiring. Second one is what i think i have done. And the last one is not a beauty, but shows nearly exactly my actual circuit.
I use this board.
Lets get started: When i try to flash the SD card and FAT filesystem example i'll get
By unplugging VCC from my breadboard (for example at line 23, so pull ups and also sd card has no voltage) i'll getA fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
By unplugging IO12 or the pull up resistor befor IO12 (respectivly DAT2) the internal blue led of my esp32 is glowing. Error message isE (1934) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
E (1934) example: Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
I think my circuit is wrong or it has something to do with GPIO12. Don't know if i should just do
Code: Select all
gpio_pullup_en(GPIO_NUM_12);
For boards which don't use the internal regulator (VDD_SDIO) to power the flash, GPIO12 can be pulled high.
For boards which use 1.8V flash chip, GPIO12 needs to be pulled high at reset. This is fully compatible with SD card operation.
On boards which use the internal regulator and a 3.3V flash chip, GPIO12 must be low at reset. This is incompatible with SD card operation.