Skip to content

Commit

Permalink
Merge pull request espressif#405 from espressif/bugfix/p4_ev_board_sd…
Browse files Browse the repository at this point in the history
…_slot

fix(esp32_p4_function_ev_board): use slot 0 for SD card
  • Loading branch information
tore-espressif authored Oct 11, 2024
2 parents 0a83a89 + 363acd4 commit 1ec79cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions bsp/esp32_p4_function_ev_board/esp32_p4_function_ev_board.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ esp_err_t bsp_sdcard_mount(void)
};

sdmmc_host_t host = SDMMC_HOST_DEFAULT();
host.slot = SDMMC_HOST_SLOT_0;
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;

sd_pwr_ctrl_ldo_config_t ldo_config = {
Expand All @@ -103,16 +104,7 @@ esp_err_t bsp_sdcard_mount(void)
host.pwr_ctrl_handle = pwr_ctrl_handle;

const sdmmc_slot_config_t slot_config = {
.clk = BSP_SD_CLK,
.cmd = BSP_SD_CMD,
.d0 = BSP_SD_D0,
.d1 = BSP_SD_D1,
.d2 = BSP_SD_D2,
.d3 = BSP_SD_D3,
.d4 = GPIO_NUM_NC,
.d5 = GPIO_NUM_NC,
.d6 = GPIO_NUM_NC,
.d7 = GPIO_NUM_NC,
/* SD card is connected to Slot 0 pins. Slot 0 uses IO MUX, so not specifying the pins here */
.cd = SDMMC_SLOT_NO_CD,
.wp = SDMMC_SLOT_NO_WP,
.width = 4,
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_p4_function_ev_board/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "4.0.0"
version: "4.0.1"
description: Board Support Package (BSP) for ESP32-P4 Function EV Board (preview)
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_p4_function_ev_board

Expand Down

0 comments on commit 1ec79cd

Please sign in to comment.