Hello,
I'm doing some latency tests with the i2c communication on the Imx8m Plus, measuring by software the wall time of the i2cwrite function (i2c_smbus_write_byte_data).
When setting the clock speed to 100KHz, single writes take about 500µs. With clock @400KHz, about 300µs.
I was expecting a single write to take something like 280µs (@100KHz) or 70µs (@400KHz). So I always get an overhead of about 220µs, independent of the clock frequency.
I also tried other I2C Buses and other I2C slaves, I always get a similar latency.
Can you advise how we can get closer of the 320kbps (Imx8m specification)?