When I use Arduino IDE, the card works without issues (SD_Test example sketch).
When using esp-idf example sd_card, i get the following error message:
Code: Select all
I (347) example: Initializing SD card
I (347) example: Using SPI peripheral
I (357) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (407) sdspi_transaction: cmd=5, R1 response: command not supported
E (427) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (427) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
I (427) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (437) example: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.
Code: Select all
USE_SPI_MODE
Code: Select all
#define PIN_NUM_MISO 19
#define PIN_NUM_MOSI 23
#define PIN_NUM_CLK 18
#define PIN_NUM_CS 5
This image shows how I connected the shield: