关于esp32使用tf卡的异常请教
Posted: Mon Aug 26, 2024 5:15 am
我打了一块验证TF的pcb,d0,d1,d2,d3,clk,cmd都10k上拉:
但是通过1线sdmmc尝试访问tf卡的时候始终报错如下:
我通过vspi的方式是可以访问tf卡的,但是sdmmc方式,不论是1线还是4线都不行
电路上面已经经过如下尝试:
1,d0,d1,d2,d3,clk,cmd 全上拉;
2,clk不上拉,其他上拉;
连接线也是检查好多天了
折腾好多天了,实在想搞明白是怎么回事,谢谢,期待有个回复。
但是通过1线sdmmc尝试访问tf卡的时候始终报错如下:
- [0;32mI (31) boot: ESP-IDF 5.3.0 2nd stage bootloader␛[0m
- ␛[0;32mI (31) boot: compile time Aug 24 2024 12:28:04␛[0m
- ␛[0;32mI (31) boot: Multicore bootloader␛[0m
- ␛[0;32mI (35) boot: chip revision: v1.0␛[0m
- ␛[0;32mI (39) boot.esp32: SPI Speed : 40MHz␛[0m
- ␛[0;32mI (43) boot.esp32: SPI Mode : DIO␛[0m
- ␛[0;32mI (48) boot.esp32: SPI Flash Size : 4MB␛[0m
- ␛[0;32mI (52) boot: Enabling RNG early entropy source...␛[0m
- ␛[0;32mI (58) boot: Partition Table:␛[0m
- ␛[0;32mI (61) boot: ## Label Usage Type ST Offset Length␛[0m
- ␛[0;32mI (69) boot: 0 nvs WiFi data 01 02 00009000 00006000␛[0m
- ␛[0;32mI (76) boot: 1 phy_init RF data 01 01 0000f000 00001000␛[0m
- ␛[0;32mI (84) boot: 2 factory factory app 00 00 00010000 00100000␛[0m
- ␛[0;32mI (91) boot: End of partition table␛[0m
- ␛[0;32mI (95) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0cef4h ( 52980) map␛[0m
- ␛[0;32mI (122) esp_image: segment 1: paddr=0001cf1c vaddr=3ffb0000 size=023f8h ( 9208) load␛[0m
- ␛[0;32mI (126) esp_image: segment 2: paddr=0001f31c vaddr=40080000 size=00cfch ( 3324) load␛[0m
- ␛[0;32mI (129) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=24754h (149332) map␛[0m
- ␛[0;32mI (187) esp_image: segment 4: paddr=0004477c vaddr=40080cfc size=0c004h ( 49156) load␛[0m
- ␛[0;32mI (213) boot: Loaded app from partition at offset 0x10000␛[0m
- ␛[0;32mI (213) boot: Disabling RNG early entropy source...␛[0m
- ␛[0;32mI (225) cpu_start: Multicore app␛[0m
- ␛[0;32mI (234) cpu_start: Pro cpu start user code␛[0m
- ␛[0;32mI (234) cpu_start: cpu freq: 160000000 Hz␛[0m
- ␛[0;32mI (234) app_init: Application information:␛[0m
- ␛[0;32mI (237) app_init: Project name: sdtestv3␛[0m
- ␛[0;32mI (242) app_init: App version: 1␛[0m
- ␛[0;32mI (246) app_init: Compile time: Aug 24 2024 12:24:48␛[0m
- ␛[0;32mI (252) app_init: ELF file SHA256: 5d0b670ae...␛[0m
- ␛[0;32mI (257) app_init: ESP-IDF: 5.3.0␛[0m
- ␛[0;32mI (262) efuse_init: Min chip rev: v0.0␛[0m
- ␛[0;32mI (267) efuse_init: Max chip rev: v3.99 ␛[0m
- ␛[0;32mI (272) efuse_init: Chip rev: v1.0␛[0m
- ␛[0;32mI (277) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
- ␛[0;32mI (284) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM␛[0m
- ␛[0;32mI (290) heap_init: At 3FFB2D60 len 0002D2A0 (180 KiB): DRAM␛[0m
- ␛[0;32mI (296) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
- ␛[0;32mI (302) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
- ␛[0;32mI (309) heap_init: At 4008CD00 len 00013300 (76 KiB): IRAM␛[0m
- ␛[0;32mI (316) spi_flash: detected chip: generic␛[0m
- ␛[0;32mI (320) spi_flash: flash io: dio␛[0m
- ␛[0;32mI (324) main_task: Started on CPU0␛[0m
- ␛[0;32mI (334) main_task: Calling app_main()␛[0m
- ␛[0;32mI (334) example: Initializing SD card␛[0m
- ␛[0;32mI (334) example: Using SDMMC peripheral␛[0m
- ␛[0;32mI (334) example: Mounting filesystem␛[0m
- ␛[0;31mE (364) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107␛[0m
- ␛[0;31mE (364) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).␛[0m
- ␛[0;31mE (364) example: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.␛[0m
- ␛[0;32mI (384) main_task: Returned from app_main()␛[0m
电路上面已经经过如下尝试:
1,d0,d1,d2,d3,clk,cmd 全上拉;
2,clk不上拉,其他上拉;
连接线也是检查好多天了
折腾好多天了,实在想搞明白是怎么回事,谢谢,期待有个回复。