Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: mavros2001 on April 03, 2020, 07:05:54 PM

Title: ESP32-GATEWAY : SD CARD + SERIAL 2
Post by: mavros2001 on April 03, 2020, 07:05:54 PM
Hello

I want to use on my esp32-gateway board the SD Card and Serial2 on GPIO16 and GPIO4. GPIO4 has not connected anymore to SDCARD.
Serial2 stops working when I added the code for SDCARD(SDMMC_test example) . I believe because of  GPIO4
The code for the SD card is working stand alone.
How can I do to make work my system but keep this GPIO4 for Serial2?
Title: Re: ESP32-GATEWAY : SD CARD + SERIAL 2
Post by: LubOlimex on April 06, 2020, 09:16:49 AM
You can't have both SD card functionality and GPIO4 work at the same time, so I'd recommed to use another GPIO for UART, ESP32 has some great multiplexing so any GPIO can be any interface.