esp32s3-eye连接sd卡,绝望崩溃,求助

Moderator: ESP_ZT

white_sun
Posts: 3
Joined: Sun Jul 03, 2022 9:28 am

esp32s3-eye连接sd卡,绝望崩溃,求助

Postby white_sun » 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

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.
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;

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.

Li Junru
Posts: 11
Joined: Thu Jul 21, 2022 4:03 am

Re: esp32s3-eye连接sd卡,绝望崩溃,求助

Postby Li Junru » Thu Jul 21, 2022 4:06 am

引脚配置错误,可以看一下eye的原理图,地址:https://dl.espressif.com/dl/schematics/ ... 1_V2.2.pdf

white_sun
Posts: 3
Joined: Sun Jul 03, 2022 9:28 am

Re: esp32s3-eye连接sd卡,绝望崩溃,求助

Postby white_sun » Thu Jul 21, 2022 6:56 am

非常感谢你的帮助!之前我在esp-idf的技术文档上发现了差不多的指示,文档让我使用1线sd模式,38-40引脚,我将其与esp32s3的引脚文档https://www.espressif.com/sites/default/files/d ... n.pdf进行对比后,发现引脚功能没对上后随便试了一个顺序就放弃了。你发给我的原理图,指出的也是38-40,这次我排序组合地试了一遍,意外地成功了(虽然跟功能表完全对不上)。可能是esp32s3系列下的不同产品的引脚定义也存在着差别吧。
总之,非常感谢你的帮助!
非常感谢你的帮助!
非常感谢你的帮助!

Crazy_L
Posts: 2
Joined: Mon Sep 19, 2022 10:18 am

Re: esp32s3-eye连接sd卡,绝望崩溃,求助

Postby Crazy_L » Thu Nov 10, 2022 9:18 am

兄弟,一样的问题啊,那三个引脚我也交替尝试了,但是我SD卡并没有初始化成功
???????????????咋回事,求解

Songluu
Posts: 5
Joined: Fri Nov 04, 2022 4:26 am

Re: esp32s3-eye连接sd卡,绝望崩溃,求助

Postby Songluu » Wed Nov 16, 2022 1:48 pm

Crazy_L wrote:
Thu Nov 10, 2022 9:18 am
兄弟,一样的问题啊,那三个引脚我也交替尝试了,但是我SD卡并没有初始化成功
???????????????咋回事,求解
兄弟你解决这个问题了吗?

Who is online

Users browsing this forum: No registered users and 7 guests