How to use S32K148 IIC Read an external EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use S32K148 IIC Read an external EEPROM

ソリューションへジャンプ
1,023件の閲覧回数
Kevin-Roman
Contributor II

Hi everyone. 

     I have a question,When I'm debugging S32K148 IIC read an external EEPROM.The following problems occur:

    

KevinRoman_1-1646016720059.png      It's going to get stuck at this point,Please see the engineer help me I want to know why

Thanks

WangXiao

 

 

 

タグ(1)
0 件の賞賛
返信
1 解決策
1,006件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,007件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
961件の閲覧回数
Kevin-Roman
Contributor II

Very grateful to youThe problem has been solved.

0 件の賞賛
返信