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