Dtynin
DIIDevHeads IoT Integration Server
•Created by Dtynin on 7/8/2024 in #code-review
Troubleshooting I2C Transaction Error with AVR Microcontroller and Zephyr RTOS
@Middleware & OS Gm guy's, I'm trying to interface an EEPROM with my AVR microcontroller using Zephyr RTOS. I've configured the I2C peripheral in the
prj.conf
file and set up the device tree bindings. However, when I attempt to write data to the EEPROM, I get an I2C transaction error. I have been able to configured the I2C peripheral in prj.conf
. Created device bindings in the device tree source file (dts
). and salso wrote an application to write data to the EEPROM.
this is my code snippet:
Despite configuring everything, the I2C write operation fails. What could be causing this error?3 replies