I2C 常见有两种错误:I2C ACK error、I2C timeout
1、I2C ACK error
在应该收到 ACK 信号的时候没有收到 ACK 信号,i2c controller 就会产生一个 ACK error 的中断,告诉 i2c driver 发生了 ACK error。通常情况是 slave 本身的问题。
1、检查 device 是否存在,i2c bus number 和 device address 是否正确。示例如下:i2c number 为 6,addr 为 0x28:
[31.092951][xxx]i2c i2c-6:add