I got the same issue with the latest code on github, the same example code (sd_card_example_main.c)worked fine with the older version idf:
Code: Select all
I (0) cpu_start: App cpu up.
I (615) heap_init: Initializing. RAM available for dynamic allocation:
I (635) heap_init: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (654) heap_init: At 3FFB2AC8 len 0002D538 (181 KiB): DRAM
I (673) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (692) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (712) heap_init: At 40088778 len 00017888 (94 KiB): IRAM
I (731) cpu_start: Pro cpu start user code
I (792) cpu_start: Starting scheduler on PRO CPU.
I (196) cpu_start: Starting scheduler on APP CPU.
I (196) example: Initializing SD card
I (196) example: Using SDMMC peripheral
E (236) sdmmc_req: handle_idle_state_events unhandled: 00000004 00000000
E (236) sdmmc_cmd: sdmmc_card_init: send_op_cond (1) returned 0x107
E (236) example: Failed to initialize the card (263). Make sure SD card lines ha
ve pull-up resistors in place.
The hardware is ESP32 WROVER V3 Kit.
With the latest idf,the card could be initialized OK with:
Change the mode to USE_SPI_MODE
Or use a low speed card such as class 4.
Could someone help us to fix the issue?Thanx!