Olimex ESP32 EVB_SD MMC_UART_I2C_Issue

ademtek
Posts: 2
Joined: Thu Aug 02, 2018 6:50 pm

Olimex ESP32 EVB_SD MMC_UART_I2C_Issue

Postby ademtek » Fri Aug 03, 2018 2:28 am

When we used SD_MMC arduino library, UART1 and I2C are not working.
UART1 Pins we use are: GPI36 for Rx and GPIO4 for Tx.
I2C Pins we use are: GPIO16 for SCL and GPIO13 for SDA.

UART1 Setup - Arduino Code:
---------------------------
#include <HardwareSerial.h>

static HardwareSerial UART1(1);

UART1.begin(BAUD_RATE, /* baud speed */
SERIAL_8N1, /* UART mode */
36, /* RX pin */
4 /* TX pin. */
);

SDMMC Setup - Arduino Code:
---------------------------
#include "FS.h"
#include "SD_MMC.h"

if(!SD_MMC.begin())
{
Serial.println("Card Mount Failed");
return;
}

I2C Setup - Arduino Code:
---------------------------
#include <Wire.h>
#include "RTClib.h"

/* I2C Pins & Frequency */
#define SCL 22 // Mapped SCL to GPIO21
#define SDA 21 // Mapped SDA to GPIO122
#define FREQ 100000

RTC_DS3231 RTC;

Wire.begin(SDA, SCL, FREQ); // SDA, SCL, Frequency
RTC.begin();

Please help us to resolve this issue.

WiFive
Posts: 2088
Joined: Tue Dec 01, 2015 7:35 am

Re: Olimex ESP32 EVB_SD MMC_UART_I2C_Issue

Postby WiFive » Sat Aug 04, 2018 4:10 am

Sdmmc uses pins 2,4,12,13,14,15

ademtek
Posts: 2
Joined: Thu Aug 02, 2018 6:50 pm

Re: Olimex ESP32 EVB_SD MMC_UART_I2C_Issue

Postby ademtek » Sun Aug 05, 2018 4:17 am

Thanks for reply.
Please refer Olimex ESP32 EVB schematics, sdmmc uses GPIO15 (data in), GPIO2 (data out) and GPIO14 (clock).

Who is online

Users browsing this forum: No registered users and 3 guests