esp32s3-eye连接sd卡,绝望崩溃,求助
Posted: Thu Jul 21, 2022 2:59 am
想问一下,有人尝试过用esp32s3-eye连接sd卡吗?我在两天不停的尝试中,看了几乎所有的官网文档和技术博客,也配不对GPIO。在最后我手动去配置上拉电阻,也don't work。
这是常见的报错:
spi模式:
#define PIN_NUM_MISO 37
#define PIN_NUM_MOSI 35
#define PIN_NUM_CLK 36
#define PIN_NUM_CS 34
sdmmc模式:
slot_config.width = 1;
slot_config.clk = GPIO_NUM_42;
slot_config.cmd = GPIO_NUM_40;
slot_config.d0 = GPIO_NUM_38;
slot_config.d3 = GPIO_NUM_39;
这是常见的报错:
spi模式:
#define PIN_NUM_MISO 37
#define PIN_NUM_MOSI 35
#define PIN_NUM_CLK 36
#define PIN_NUM_CS 34
Code: Select all
I (276) sleep: Configure to isolate all GPIO pins in sleep state
I (283) sleep: Enable automatic switching of GPIO sleep configuration
I (290) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (311) example: Initializing SD card
I (311) example: Using SPI peripheral
I (311) example: Mounting filesystem
I (321) gpio: GPIO[34]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (371) sdmmc_sd: sdmmc_init_sd_if_cond: send_if_cond (1) returned 0x108
E (371) vfs_fat_sdmmc: sdmmc_card_init failed (0x108).
I (371) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (381) example: Failed to initialize the card (ESP_ERR_INVALID_RESPONSE). Make sure SD card lines have pull-up resistors in place.
slot_config.width = 1;
slot_config.clk = GPIO_NUM_42;
slot_config.cmd = GPIO_NUM_40;
slot_config.d0 = GPIO_NUM_38;
slot_config.d3 = GPIO_NUM_39;
Code: Select all
I (319) gpio: GPIO[42]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (329) gpio: GPIO[40]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (339) gpio: GPIO[38]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
E (369) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (369) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
E (369) example: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.