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
已解决! 转到解答。
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.
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------