kStatus_LPI2C_ArbitrationLost (error 905) error

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

kStatus_LPI2C_ArbitrationLost (error 905) error

跳至解决方案
1,608 次查看
caleb
Contributor III

Note to future me, and anyone else who's getting the kStatus_LPI2C_ArbitrationLost error when attempting to use the I2C Peripheral.  

 

If you're getting this ArbitrationLost error, with the I2C clock and data pins *only* doing a start condition, then immediately failing, it's likely because you don't have the "SoftwareInputOn' mode selected in the IOMUXC.

1 解答
1,607 次查看
caleb
Contributor III

Make sure you have called

IOMUXC_SetPinMux(IOMUXC_GPIO_11_LPI2C1_SDA, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_12_LPI2C1_SCL, 1U);

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,523 次查看
SammyP
Contributor I

Thanks for this. I spent a few hours tracing the issue without success until I found this. It's real easy to overlook stuff when setting up basic peripherals on the i.MX because there is just so much stuff to configure.

0 项奖励
回复
1,608 次查看
caleb
Contributor III

Make sure you have called

IOMUXC_SetPinMux(IOMUXC_GPIO_11_LPI2C1_SDA, 1U);
IOMUXC_SetPinMux(IOMUXC_GPIO_12_LPI2C1_SCL, 1U);

 

0 项奖励
回复