I2C ERROR IN UBOOT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C ERROR IN UBOOT

2,776 次查看
sd05
Contributor III

I am using a iMx8mm processor based product and I have a fuelgauge IC MAX1720x interfaced on i2c bus 3.

Everything is working fine in kernel but in u-boot getting these error when I am trying to read the fuelgauge registers using i2c

Setting bus to 3
Valid chip addresses:
before modification
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error writing the chip: -110
after modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
before modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error writing the chip: -110
after modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
before modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error writing the chip: -110
after modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
before modification
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110
wait_for_sr_state: Arbitration lost sr=b2 cr=b8 state=202
i2c_init_transfer: failed for chip 0xa retry=0
wait_for_sr_state: Arbitration lost sr=13 cr=98 state=202
Error writing the chip: -85
after modification
wait_for_sr_state: failed sr=0 cr=98 state=202
Error reading the chip: -110

标签 (1)
0 项奖励
回复
2 回复数

1,842 次查看
yellapu_anishkh
Contributor IV

We are facing similar issue. Did you resolved the same ?

0 项奖励
回复

2,768 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Sunidhi

 

one can check if SION bit is set for i2c signals, described for example in sect.8.2.5.133 Pad Mux Register
(IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL) and check signals with oscilloscope

i.MX 8M Mini Applications Processor Reference Manual

 

Best regards
igor

0 项奖励
回复