cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G070RBT6 I2C communication with ESP32 S3 C1 devkit

RamyaD
Associate II

Hi, I am new to STM32, I am trying the i2c communication between stm32 and esp32. I am using STM32 as slave and ESP32 as Master. I am using Arduino IDE

I connected stm32  PB6-SCL, PB7-SDA to esp32  GPIO21-SDA, GPIO19-SCL.

i was not getting any response in the output. Can anyone help me with it.

Code is attached.

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Foued_KH
ST Employee

Hello @RamyaD , 

Could you please connect GND to GND.

Take an oscilloscope to check SDA and SCL behavior. 

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Foued_KH
ST Employee

Hello @RamyaD , 

Could you please connect GND to GND.

Take an oscilloscope to check SDA and SCL behavior. 

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

HI @Foued_KH , 

It was done. Thanks for the replay.

RhSilicon
Lead

The Arduino IDE will mask a lot of things, the ideal would be to use the STM32CubeIDE for the STM32:

How to use I2C Communication in STM32 Microcontroller (Arduino IDE)

Getting started with I2C (STM32Cube)