Skip to content

ESP32-S3 failed to mount SD on HSPI #7565

Answered by P-R-O-C-H-Y
schultzgc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @schultzgc, I have no issues running SD card on ESP32S3 with your pins setup, but I have slightly edited your code and I left the original lines commented. Can you give it a try?

/*
 * Connect the SD card to the following pins:
 *
 * SD Card | ESP32
 *    D2       -
 *    D3       SS
 *    CMD      MOSI
 *    VSS      GND
 *    VDD      3.3V
 *    CLK      SCK
 *    VSS      GND
 *    D0       MISO
 *    D1       -
 */
#include "FS.h"
#include "SD.h"
#include "SPI.h"

#if CONFIG_IDF_TARGET_ESP32

#define SD_SCK  GPIO_NUM_14
#define SD_MISO GPIO_NUM_12
#define SD_MOSI GPIO_NUM_13
#define SD_SS   GPIO_NUM_15

#elif CONFIG_IDF_TARGET_ESP32S3

#define SD_SCK  GPIO_NUM_14
#define SD_MISO GP…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@schultzgc
Comment options

@me-no-dev
Comment options

@schultzgc
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vanshksingh
Comment options

Answer selected by P-R-O-C-H-Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants