lpi2c freeRTOS transmission errors

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

lpi2c freeRTOS transmission errors

跳至解决方案
590 次查看
tbtbtbt
Contributor III

Hello,

I used the freertos_lpi2c demo app to get rt 1020 board communicating with arduino uno. I transferred the working driver code into a different project, and now i2c transfers won't work. Following the start bit being sent, SCL toggles forever and no data transfer is initiated. 

tbtbtbt_0-1632809885870.png

I think this might be a timing problem, but I've made sure the i2c clock is configured the same in the working project and the new project. Could timing issues cause this to happen? And if not, what other sorts of errors could cause this? I'm not sure what to try next, I appreciate any help.

Thank you.

标记 (2)
0 项奖励
1 解答
577 次查看
tbtbtbt
Contributor III

I realized that even though I had the pin configurations set correctly, it wasn't updating the pin_mux.c file when I pressed "Update Code," so I had to do it manually. Not sure why it wasn't updating the code correctly, but now working fine.

在原帖中查看解决方案

2 回复数
578 次查看
tbtbtbt
Contributor III

I realized that even though I had the pin configurations set correctly, it wasn't updating the pin_mux.c file when I pressed "Update Code," so I had to do it manually. Not sure why it wasn't updating the code correctly, but now working fine.

569 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
I'm glad to hear the issue was resolved, regarding the code update issue, you can try to update the MCUXpresso IDE to fix it.
BR,
Jeremy

0 项奖励