SD Card example not working
Posted: Wed Sep 27, 2017 5:05 pm
Hardware - https://www.olimex.com/Products/IoT/ESP32-WROVER-KIT/
esp-idf commit: a3a4a20
Using the sd_card example provided, I tried to get the board to read a SanDisk 2GB microSD card. I want to be able to use 4-line mode but have not had any success. I started with an ESP32 breakout and my own wiring to an sd card adapter, and had the same results. I went for the WROVER-KIT since I figured the official Espressif device would definitely have it wired up properly, but still no luck. What should I look for in terms of a direction to get 4-line mode working?
1-bit mode results
esp-idf commit: a3a4a20
Using the sd_card example provided, I tried to get the board to read a SanDisk 2GB microSD card. I want to be able to use 4-line mode but have not had any success. I started with an ESP32 breakout and my own wiring to an sd card adapter, and had the same results. I went for the WROVER-KIT since I figured the official Espressif device would definitely have it wired up properly, but still no luck. What should I look for in terms of a direction to get 4-line mode working?
1-bit mode results
4-bit mode resultsI (269) example: Initializing SD card
I (3269) example: Using SDMMC peripheral
E (3309) sdmmc_req: handle_idle_state_events unhandled: 00000004 00000000
E (3309) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
E (3309) example: Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
SPI mode resultsI (269) example: Initializing SD card
I (3269) example: Using SDMMC peripheral
E (3309) sdmmc_req: handle_idle_state_events unhandled: 00000004 00000000
E (3309) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
E (3309) example: Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
I (270) example: Initializing SD card
I (3270) example: Using SPI peripheral
I (3270) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulld
own: 0| Intr:0
Name: SU02G
Type: SDSC
Speed: default speed
Size: 1886MB
CSD: ver=0, sector_size=512, capacity=3862528 read_bl_len=10
SCR: sd_spec=2, bus_width=5
I (3440) example: Opening file
I (3460) example: File written
I (3460) example: Renaming file
I (3460) example: Reading file
I (3470) example: Read from file: 'Hello SU02G!'
I (3470) example: Card unmounted