cancel
Showing results for 
Search instead for 
Did you mean: 

I2C communication between STM32L4R5 and esp32

ejeee
Associate

I tried creating I2C connection between my stm32 board and esp32. I assume it is not working because of my code, due to the wiring being so simple in I2C communication, the pull up resistor is connected externally. Do you guys see any mistake in my code that could make my I2C to not work?  I cannot figure out why it would not work.

13 REPLIES 13
tantheman
Associate III

Have a look at my post. it may be helpful.

ESP32 AND STM32 I2C INTERFACE 

@tantheman did you mean to give a link?

https://community.st.com/t5/others-stm32-mcus-related/esp32-and-stm32-i2c-interface/td-p/854859 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

yes meant to give the link but was facing some errors .... being new to the site 

MM..1
Chief III

Seems in Arduino you miss order , right is

bool Wire.begin(uint8_t addr, int sdaPin, int sclPin, uint32_t frequency);