I2C ERROR IN UBOOT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C ERROR IN UBOOT

1,280 Views
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

Labels (1)
0 Kudos
2 Replies

346 Views
yellapu_anishkh
Contributor IV

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

0 Kudos

1,272 Views
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 Kudos