Replies: 5 comments 14 replies
-
You will need to configure the pins in machine_sdcard.c according to these instructions: The corresponding place in machine_sdcard.c is here https://github.com/micropython/micropython/blob/master/ports/esp32/machine_sdcard.c#L248 |
Beta Was this translation helpful? Give feedback.
-
How I can rebuild the firmware with this changes? @jimmo |
Beta Was this translation helpful? Give feedback.
-
Great thank you very much |
Beta Was this translation helpful? Give feedback.
-
I landed here trying to do the same thing. It seems inconsistent to allow users to select the SPI interface pin assignments, yet force a fixed pin assignment or require a rebuild process for the SD/MMC interface. While @dotnfc’s solution is better than hardcoding the pins in This would make it easier to use the SD/MMC host in the ESP32-S3 (and possibly ESP32-S2?), which can offer speed improvements with a larger data width. This could be beneficial for heavy data logging applications. Additionally, it would dedicate the specific SDIO interface for the SD card, freeing up the more general-purpose SPI interface for other uses. @jimmo, would this be a nice improvement, or am I missing some downside? |
Beta Was this translation helpful? Give feedback.
-
I wrote a small change to the sdcard implementation to allow for arbitrary pins assignments. Tested with a few cards and it works great, SDMMC 4 bit width: chroma-tech@3ed4cbd |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I have recently discovered the esp32 and Micropython environment and am stuck using the built-in SD/MMC hardware peripheral on an ESP32-s3.
My home made development card has the following hardware connections:
I took these hardware connections from an ESP32-S3 development board. Here is a link to the repo of the example of the use of the SDMMC card of espressif. Note that : "On ESP32-S3, SDMMC peripheral is connected to GPIO pins using GPIO matrix. This allows arbitrary GPIOs to be used to connect an SD card."
When I read the Micropython SDCard class library for esp32, access to SD or MMC storage cards using dedicated SD/MMC interface hardware is done by specifying slot 0 or 1. Since slot 0 is used to communicate with on-board flash memory on most ESP32, I use slot 1.
The library specify that the pins used by the dedicated SD/MMC hardware are fixed and as follows :
Could you advise me if it is still possible to use my SD card with my hardware configuration. If yes how, by adapting the machine_sdcard.c file of the library ?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions