I2C issue on imx6q

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

I2C issue on imx6q

484 Views
alexisfronteau
Contributor III

Hi,

I'm using an imx6 conected to a fpga by I2C and i notice a problem. If I read several bytes from fpga, it does not work but if I add a delay in imx-i2c driver between the interrupt of receive data and the read of  I2C_I2DR, I read correct data. Do the interrupt occurs after or before I2C_I2DR register is loaded with received data ?

Thanks

Labels (2)
0 Kudos
1 Reply

369 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alexis

to check if that is caused by some issues with operating system delays, one can test

it with baremetal tests :

Github SDK
https://github.com/backenklee/swp-report/tree/master/iMX6_Platform_SDK

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos