how can connect esp32-s3 to the sd card in 4-bit sdio protocol

frhmhd
Posts: 2
Joined: Wed Jun 15, 2022 5:19 am

how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby frhmhd » Wed Jun 15, 2022 5:24 am

hi
im new in esp32
can anyone help me how can connect esp32-s3-wroom to the sd card in 4-bit sdio protocol?

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

Re: how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby gtjoseph » Wed Jun 15, 2022 11:11 am

There's an example for this under esp-idf/examples/storage/sdmmc.
From a hardware perspective, using sdio with the s3 is easy because the s3 allows you to use just about any GPIO for any of the sdio signals.

frhmhd
Posts: 2
Joined: Wed Jun 15, 2022 5:19 am

Re: how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby frhmhd » Thu Jun 16, 2022 4:41 pm

thanks gtjoseph

isnt any default IO for SDIO?
how can i setup pin number for use sdio ?

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

Re: how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby gtjoseph » Fri Jun 17, 2022 11:39 am

The example at https://github.com/espressif/esp-idf/tr ... card/sdmmc
shows you exactly how to set the pins.

nullbert
Posts: 15
Joined: Sun May 29, 2022 5:31 pm

Re: how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby nullbert » Thu Aug 11, 2022 6:40 pm

Hello,

Related to this question, we are looking to use the ESP32-S3-WROOM-2-N32R8V in a project.

We want to attach an SD card in 4 bit mode.

Per the datasheet, it appears the -S3 supports two separate SD card "slots".

* Would we be able to connect the SD card in 4 bit mode independent of the internal PSRAM and flash?
* Would we be able to map all of the signal lines to arbitrary GPIO pins on the module we're working with?

Looking at https://github.com/espressif/esp-idf/tr ... card/sdmmc

It suggests attaching GPIO33 and 34 to my SD card, but 33/34 is not connected to the pads on the module we are using - they're internally connected to the flash.

Code: Select all

GPIO36 	CLK 	10k pullup
GPIO35 	CMD	10k pullup
GPIO37 	D0 	10k pullup
GPIO38 	D1 	not used in 1-line SD mode; 10k pullup in 4-line mode
GPIO33 	D2 	not used in 1-line SD mode; 10k pullup in 4-line mode
GPIO34 	D3 	not used in 1-line SD mode, but card's D3 pin must have a 10k pullup
For our SD card, could we map GPIO33/34 to a different pin on our module?

TIA

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: how can connect esp32-s3 to the sd card in 4-bit sdio protocol

Postby ESP_igrr » Sun Aug 14, 2022 7:03 am

Hi nullbert,

On ESP32-S3 you can use any available I/Os (not used for other purposes) for SDMMC peripheral. The driver will use the GPIO matrix to route the I/Os to the peripheral signals.

Please see the first paragraph in the S3 related part of the example README file: https://github.com/espressif/esp-idf/tr ... r-esp32-s3

Or the API reference: https://docs.espressif.com/projects/esp ... ring-gpios

So yes, you can use different IOs than 33 and 34 in your project.

Who is online

Users browsing this forum: No registered users and 56 guests