ESP32 SDCard error on write
Posted: Thu Oct 22, 2020 11:22 am
I'm develop custom board with ESP32-D0WD. It uses sd card for loging information. Every time I'm trying to write to sd card i'm getting errors.
Connection between MCU and sd card are same as on lyrat4.3:
SD_CLK -> MTMS (Pin 17)
SD_D2 -> MTDI (Pin 18)
SD_D3 -> MTCK (Pin 20)
SD_CMD -> MTDO (Pin 21)
SD_D0 -> GPIO02 (Pin 22)
SD_D1 -> GPIO04 (Pin 24)
SD_DETECT -> VDET_1 (Pin 10)
10k pullup resistors are present on each pin of sd card.
logs from ESP32:
E (10866) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (10866) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
E (10866) SDCARD: Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
Right now im using sd_card example from esp-idf for testing.
Connection between MCU and sd card are same as on lyrat4.3:
SD_CLK -> MTMS (Pin 17)
SD_D2 -> MTDI (Pin 18)
SD_D3 -> MTCK (Pin 20)
SD_CMD -> MTDO (Pin 21)
SD_D0 -> GPIO02 (Pin 22)
SD_D1 -> GPIO04 (Pin 24)
SD_DETECT -> VDET_1 (Pin 10)
10k pullup resistors are present on each pin of sd card.
logs from ESP32:
E (10866) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (10866) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
E (10866) SDCARD: Failed to initialize the card (263). Make sure SD card lines have pull-up resistors in place.
Right now im using sd_card example from esp-idf for testing.