ESP configured as I2C slave receives incorrect data

dyutimoybiswas
Posts: 3
Joined: Sat Jul 29, 2023 7:12 am

ESP configured as I2C slave receives incorrect data

Postby dyutimoybiswas » Tue Feb 20, 2024 11:38 am

I am trying to interface my Tiva C microcontroller with ESP32 Pico Kit via I2C. I have configured Tiva as master, ESP as slave and I am trying to transmit data from Tiva to ESP at an interval of 1 second. While the Tiva transmission works as expected (verified using logic analyzer), ESP is reading incorrect values from Tiva. Please let me know if I am doing anything wrong. Attached code for reference.
Attachments
main.c
(525 Bytes) Downloaded 79 times
i2c_s.h
(374 Bytes) Downloaded 79 times
i2c_s.c
(2.12 KiB) Downloaded 79 times

Who is online

Users browsing this forum: No registered users and 105 guests