Part Number: AM2634
HI,
i'm facing issue in i2c write and read, using i2c for rtc, while reading and writing through i2c my code is stopping in 4 places. can anyone explain ,how it can be resolved.




This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM2634
HI,
i'm facing issue in i2c write and read, using i2c for rtc, while reading and writing through i2c my code is stopping in 4 places. can anyone explain ,how it can be resolved.




Hi,
Please elaborate. The question only mentions "4 places". What are the 4 places? Are they Timeouts? Is this a custom board and your custom software or TI board and TI SDK drivers? If TI SDK, what is the version of SDK being used?
Regards,
Shaunak
i2c_lld file in my custom board software. The drivers were originally taken from SDK version 9.2. I set the transaction timeout to 1000, and I added variables like timeout and timeout1 so the code can break out of the loop after 255 iterations in case it gets stuck inside those loops. when i do this my read and write is failing.Hi Gopala,
Are the errors consistent with every run or random or periodic? Also, are we sure if the RTC module is responding and not holding the bus busy? The AM263x I2C drivers don't have clock stretching support in-case the interfaced RTC needs it.
Regards,
Shaunak