Hi,
I bought :
I tested I2C1 and I2C2 with the processor board on the development board with i2cdetect, and it sees all connected chips on both buses.
Then I made my own board. I2C1 passes the test. But at some point, while the Linux kernel is loading, the I2C2_SCL line goes low, and stays low forever. I2C2_SDA is high all the time. A reboot doesn't bring SCL back high again, only a power cycle. When I take the processor board from my home made board to the development board, I2C2 works OK.
What I did on my home made board :
So, now, I'm desperately running out of ideas...
Regards
解決済! 解決策の投稿を見る。
**bleep** it ! That was a shortcut to the next pin configured as a SPI chip select. Hence the pin pulled low at Linux boot.
**bleep** it ! That was a shortcut to the next pin configured as a SPI chip select. Hence the pin pulled low at Linux boot.
Hi dplamp
one can try to narrow down issue, if this is caused by hardware or linux running baremetal sdk test
https://github.com/RT-Thread/rt-thread/tree/master/bsp/imx6sx/iMX6_Platform_SDK/sdk/drivers/i2c
https://community.nxp.com/t5/i-MX-Processors/SMP-Enable-in-IMX6/m-p/542111
Best regards
igor