Hi !
I have problems to connect my SD Card Module the ESP. cant connect.
i use
#define SCK 36
#define MISO 37
#define MOSI 35
#define SS 34
i tryed also the example code in Heltec Lib…not working.
Hi !
I have problems to connect my SD Card Module the ESP. cant connect.
i use
#define SCK 36
#define MISO 37
#define MOSI 35
#define SS 34
i tryed also the example code in Heltec Lib…not working.
Please provide a little more detail.
What is the exact board you are using? Wireless Stick Lite(V3)?
There are so many code samples a link would help or even post your code.
What development environment are you using? Arduino IDE or PlatformIO etc.
ESP32 S3 lite V3 (HTIT-WSL_V3), Arduino IDE
i using the example code from IDE
examples/Heltec esp DEV Boards/SD/SD_time
and i replaced
spi1.begin(17, 13, 23, 22);
with
spi1.begin(36, 37, 35, 34);
Did you also replace
if(!SD.begin(22, spi1)){
with (in your case)
if(!SD.begin(34, spi1)){
The example sketch seems to work OK on my Wireless Stick Lite. The pins used by default in the example appear to be those applicable to a WiFi LoRa 32 V2.x module (this confirmed on close examination of the pin numbering in the image of the configuration included in the SD directory of the GitHub repository) so they do have to be modified for a V3 board—in ignorance, I just copied the pin positions in the image, initially assuming it was a V3 board, and used pins 20, 6, 34, 36, but they work OK on the WSL V3 in any case.
SD_CS – GPIO 20
SD_MOSI – GPIO 6
SD_SCK – GPIO 34
SD_MISO – GPIO 36
???
SPIClass(1);
spi1.begin(20, 6, 34, 36);
if(!SD.begin(20, spi1)).........
sorry dont work…
i work with many other ESP32…but had never so much Problems…
when i asked the board for the pins it say
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x1188
load:0x403c8700,len:0x4
load:0x403c8704,len:0xbf0
load:0x403cb700,len:0x30e4
MOSI: 35
MISO: 37
SCK: 36
SS: 34
SDA: 2
SCL: 3
RST_LoRa: 12
BUSY_LoRa: 13
DIO0: 14
TX: 43
RX: 44
Heltec Wireless Stick Lite(V3)
an COM5
If your pin assignments are:
then your spi1
begin call should be
spi1.begin(34, 36, 6, 20); // SD_SCK, SD_MISO, SD_MOSI, SD_CS
and then your SD.begin would be
SD.begin(20, spi1); // SD_CS, SD_SPI
At least that’s how it works for me… and with several other pin configurations too, but all specified in the above order.
THX so much !!! it works…