I2C demo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
733 次查看
CMoran
Contributor III

Hello! I'm trying to learn more about i2c and have imported an SDK example to assisting in the learning process. Although I've run into some issues debugging/running the demo. The debug console will display some of what the demo is suppose to print on the Serial COM terminal I have opened but then it hangs and never makes it to the rest of the demo. I stepped through the demo and it is stuck on a while loop that is waiting for the slave to finish receiving (while(g_SlaveRxIndex < LPI2C_DATA_LENGTH)). It was the lpi2c interrupt demo, which didn't come with separate master/slave code so I assumed the demo would run on my board without any additional peripherals.

I'm new to embedded systems coding, any insight would be helpful.

Board is: MIMXRT1170-EVK

SDK is: SDK_2.x_MIMXRT1170-EVK (SDK Version 2.10.1)

Demo is: evkmimxrt1170_lpi2c_interrupt_cm7

0 项奖励
回复
1 解答
718 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I was wondering if you can share the printed result.
Further, I'd like to confirm that whether you set the MIMXRT1170-EVK as the readme.txt illustrates.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
719 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Before answering your question, I was wondering if you can share the printed result.
Further, I'd like to confirm that whether you set the MIMXRT1170-EVK as the readme.txt illustrates.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复