Hi everyone.
I have a question,When I'm debugging S32K148 IIC read an external EEPROM.The following problems occur:
It's going to get stuck at this point,Please see the engineer help me I want to know why
Thanks
WangXiao
解決済! 解決策の投稿を見る。
Hi,
so does it mean the RXEMPTY bit is never cleared?
Do you see any bytes (clocks/data) on the bus for this read sequence?
Also I guess you should change condition for while loop, this way shifting temp you can lost data value.
You can have e.g.
for(i=0;i<len;i++)
{
do
{
temp = LPI2C0->MRDR;
wdtIntFeed();
} while(0U != (temp&0x4000U));
data[i] = temp;
}
BR, Petr
Hi,
so does it mean the RXEMPTY bit is never cleared?
Do you see any bytes (clocks/data) on the bus for this read sequence?
Also I guess you should change condition for while loop, this way shifting temp you can lost data value.
You can have e.g.
for(i=0;i<len;i++)
{
do
{
temp = LPI2C0->MRDR;
wdtIntFeed();
} while(0U != (temp&0x4000U));
data[i] = temp;
}
BR, Petr
Very grateful to youThe problem has been solved.