Closed
Description
Hello,
I'm using esp32-s3 and a MicroSD card adapter, with these connections(SDMMC_HOST_FLAG_1BIT):
- CLK: GPIO_NUM_14
- CMD: GPIO_NUM_15
- D0: GPIO_NUM_2
and this is my code:
sdmmc_card_t *card;
sdmmc_host_t host = SDMMC_HOST_DEFAULT();
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
host.flags = SDMMC_HOST_FLAG_1BIT;
sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();
sdmmc_host_init_slot(SDMMC_HOST_SLOT_1, &slot_config);
gpio_pullup_en(GPIO_NUM_14);
gpio_pulldown_dis(GPIO_NUM_14);
gpio_pullup_en(GPIO_NUM_15);
gpio_pulldown_dis(GPIO_NUM_15);
gpio_pullup_en(GPIO_NUM_2);
gpio_pulldown_dis(GPIO_NUM_2);
gpio_pullup_en(GPIO_NUM_4);
gpio_pulldown_dis(GPIO_NUM_4);
gpio_pullup_en(GPIO_NUM_12);
gpio_pulldown_dis(GPIO_NUM_12);
gpio_pullup_en(GPIO_NUM_13);
gpio_pulldown_dis(GPIO_NUM_13);
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
.format_if_mount_failed = false,
.max_files = 5,
};
esp_err_t ret = esp_vfs_fat_sdmmc_mount("/root", &host, &slot_config, &mount_config, &card);
The problem is that I have these errors (and the esp_vfs_fat_sdmmc_mount return always error=0x107):
E (3193) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (3193) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
Failed to initialize the card. Make sure SD card lines have pull-up resistors in place.
I have done also the eFuse, but nothing change...
With esp32-wroom32 and esp32-pico mini I have no problem with the same code and wire.
please could you help me?
Thanks
Simeon