Dear all
I am using RT1024, I2C has issues, the communication sequence is
1. Send LPI2C_MasterStart(Base, I2C_Status[chn].SlaveAddr, kLPI2C_Write)
2. Calling LPI2C_MasterGetFifoCounts(Base, NULL, &txCount); to get txCount, if txCount>0 then wait until it is 0, otherwise carry on check LPI2C_MasterGetStatusFlags(Base) & kLPI2C_MasterNackDetectFlag , and further operation.
It usually work fine, but sometime I found that Step 2 stays in the state forever as it always get 1 for txCount although waited for some time. Then software locks there forever.
Could somebody tell me how to solve the problem? in step 1 the FIFO txCount is 0 before sending, how can it sending forever?
what is the way to recover please?
Thank you!
Ping
解決済! 解決策の投稿を見る。
Hello, I suggest reviewing the example in the SDK for the board EVK and comparing if you have the same configuration.
Best regards,
Pavel
Hello, my name is Pavel, and I will be supporting your case, but I what to know the example that you are using and the steps to reproduce this issue.
Best regards,
Pavel
Hello, I suggest reviewing the example in the SDK for the board EVK and comparing if you have the same configuration.
Best regards,
Pavel