You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp32> sd_card_mount
I (6248) sd_card: Powering the SD card on
I (6258) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (6268) sd_card: Mounting SD card filesystem
I (6588) sd_card: SD card filesystem mounted
esp32> sd_card_unmount
I (14738) gpio: GPIO[34]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14738) gpio: GPIO[14]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14748) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14748) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14758) gpio: GPIO[4]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14778) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14778) gpio: GPIO[13]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (14788) sd_card: SD card unmounted (ESP_OK)
I (14788) sd_card: Powering the SD card off
I (14788) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
esp32>
Notice how GPIO 13 gets configured twice (that is because IO13 is mapped to D3, but the board has IO13 used to control the power to the SD card.
More Information.
For lower bus widths, the IO lines for d1, d2, d3 could be used for other functions on a board, and thus deinitializing them incorrectly like what is happening could cause issues for the application.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
sdmmc driver deinitializing too many GPIOs for 1 bit bus (slot_width)
sdmmc driver deinitializing too many GPIOs for 1 bit bus (slot_width) (IDFGH-14573)
Feb 4, 2025
Answers checklist.
IDF version.
v5.4
Espressif SoC revision.
ESP32-D0WD-V3 (revision v3.1)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-LyraT-Mini V1.2
Power Supply used.
USB
What is the expected behavior?
After calling
esp_vfs_fat_sdmmc_mount()
withslot_config.width = 1
the SD card lines are initialized as expected [clk, cmd, d0]After calling
esp_vfs_fat_sdcard_unmount()
the SD card lines should be deinitialized [clk, cmd, d0]What is the actual behavior?
After calling
esp_vfs_fat_sdmmc_mount()
withslot_config.width = 1
the SD card lines are initialized as expected [clk, cmd, d0]After calling
esp_vfs_fat_sdcard_unmount()
the too many SD card lines are deinitialized [clk, cmd, d0, d1, d2, d3]Steps to reproduce.
esp_vfs_fat_sdmmc_mount()
withslot_config.width = 1
esp_vfs_fat_sdcard_unmount()
Debug Logs.
More Information.
For lower bus widths, the IO lines for d1, d2, d3 could be used for other functions on a board, and thus deinitializing them incorrectly like what is happening could cause issues for the application.
The text was updated successfully, but these errors were encountered: