SDSPI and ESP32S3 pinout

beryllium
Posts: 11
Joined: Fri Mar 12, 2021 2:14 pm

SDSPI and ESP32S3 pinout

Postby beryllium » Sat Sep 16, 2023 5:31 pm

Hello,
I'm trying to use an SD card reader in SPI mode. To get familiar, I used the SDSPI example. I have no difficulty with the ESP-WROVER-KIT development board and the default pin configuration. I then migrated to a LiliGO T-DISPLAY board with ESP32-S3 (without display installed). I rebuilt the application for ESP32S3 target. On the other hand, I used non-standard pins: GPIO_NUM_10 for CS, GPIO_NUM_11 for SCLK, GPIO_NUM_12 for MOSI and GPIO_NUM_13 for MISO. I installed 10K resistors between each of these pins and the 3.3v. As a result it doesn't work. Do you have any ideas to help me resolve this issue? Here is monitor log:

Code: Select all

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037944e
0x4037944e: esp_cpu_wait_for_intr at C:/Espressif/frameworks/esp-idf-v5.1.1/components/esp_hw_support/cpu.c:121

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x16e0
load:0x403c9700,len:0x4
load:0x403c9704,len:0xc00
load:0x403cc700,len:0x2eb0
entry 0x403c9908
I (27) boot: ESP-IDF v5.1.1 2nd stage bootloader
I (27) boot: compile time Sep 16 2023 14:40:32
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v0.1
I (34) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode       : DIO
I (43) boot.esp32s3: SPI Flash Size : 2MB
I (48) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (64) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (72) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  2 factory          factory app      00 00 00010000 00100000
I (87) boot: End of partition table
I (91) esp_image: segment 0: paddr=00010020 vaddr=3c030020 size=0e888h ( 59528) map
I (110) esp_image: segment 1: paddr=0001e8b0 vaddr=3fc93300 size=01768h (  5992) load
I (112) esp_image: segment 2: paddr=00020020 vaddr=42000020 size=2b7bch (178108) map
I (148) esp_image: segment 3: paddr=0004b7e4 vaddr=3fc94a68 size=01204h (  4612) load
I (149) esp_image: segment 4: paddr=0004c9f0 vaddr=40374000 size=0f23ch ( 62012) load
I (174) boot: Loaded app from partition at offset 0x10000
I (174) boot: Disabling RNG early entropy source...
I (185) cpu_start: Multicore app
I (186) cpu_start: Pro cpu up.
I (186) cpu_start: Starting app cpu, entry point is 0x40375370
0x40375370: call_start_cpu1 at C:/Espressif/frameworks/esp-idf-v5.1.1/components/esp_system/port/cpu_start.c:154

I (0) cpu_start: App cpu up.
I (204) cpu_start: Pro cpu start user code
I (204) cpu_start: cpu freq: 160000000 Hz
I (204) cpu_start: Application information:
I (207) cpu_start: Project name:     sd_card
I (212) cpu_start: App version:      1
I (216) cpu_start: Compile time:     Sep 16 2023 14:40:10
I (222) cpu_start: ELF file SHA256:  f8767d4c432854a8...
I (228) cpu_start: ESP-IDF:          v5.1.1
I (233) cpu_start: Min chip rev:     v0.0
I (238) cpu_start: Max chip rev:     v0.99
I (243) cpu_start: Chip rev:         v0.1
I (248) heap_init: Initializing. RAM available for dynamic allocation:
I (255) heap_init: At 3FC96590 len 00053180 (332 KiB): DRAM
I (261) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (268) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (281) spi_flash: detected chip: winbond
I (285) spi_flash: flash io: dio
W (289) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (302) sleep: Configure to isolate all GPIO pins in sleep state
I (309) sleep: Enable automatic switching of GPIO sleep configuration
I (316) app_start: Starting scheduler on CPU0
I (321) app_start: Starting scheduler on CPU1
I (321) main_task: Started on CPU0
I (331) main_task: Calling app_main()
I (331) example: Initializing SD card
I (341) example: Using SPI peripheral
I (341) example: Mounting filesystem
I (351) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (381) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
I (381) gpio: GPIO[10]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (381) example: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.
I (391) main_task: Returned from app_main()

Who is online

Users browsing this forum: No registered users and 272 guests