I2C config error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,108件の閲覧回数
Andrew101
Contributor II

Hello everyone,

I'm trying to config the I2C on board S32K344EVB (SCH-53148 REV  B) and plug the logic analyzer to display the signal sent by the board. However, I don't anything on the logic analyzer software. I also tried the example code but it showed the same result. So, if anyone configed I2C succcesfully , please share the project to me for referring purpose.  (I used S32DS 3.6.3). Thanks for reading.

0 件の賞賛
返信
1 解決策
990件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as a project I simply used demo one. Steps were, create new project from example, select I2c_Ip_Example_S32K344_Q172, open mex file, update code, build and download.
If you do not have slave connected, you get no ACK, so you will see just first byte transmitted from master. Below is connection and bus signals I had

Slave disconnected

IMG_1677.jpg 

PetrS_1-1759822330991.png

Slave connected 

IMG_1678.JPG 

PetrS_2-1759822349449.png

BR, Petr

 

元の投稿で解決策を見る

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

Hi,

I tested quickly an I2c_Ip_Example_S32K344_Q172 example from RTD600 on S32K3X4EVB_T172.
I see it is working well using below connection

PetrS_0-1759733944949.pngPetrS_1-1759733966338.png

Be sure you have onboard pullup resistor mounted, otherwise use external one to have a bus properly pulled up.

BR, Petr

0 件の賞賛
返信
1,076件の閲覧回数
Andrew101
Contributor II
Excuse me,
Can you explain more how to wire ? I mean I need to use 2 wires or 4 wire? Thank you.
0 件の賞賛
返信
1,059件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

just 2 wires
FXIO_D10_SCL (J4.19) - LPI2C1_SCL (J3.24)
FXIO_D11_SDA (J4.17) - LPI2C1_SDA (J3.27)

BR, Petr

0 件の賞賛
返信
1,038件の閲覧回数
Andrew101
Contributor II

Excuse me,
The i2c still does not work. I only see a straight line on the logic analyer software.Also, I have a question with your result is that if you have only 1 S32K344 board and 1 logic analyzer , the board just send data and no slave, how did you get the "ACK"? Hope you share your project or some images of your hardware setup to me, It can help me imagine easier. Thanks for reading!

0 件の賞賛
返信
991件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as a project I simply used demo one. Steps were, create new project from example, select I2c_Ip_Example_S32K344_Q172, open mex file, update code, build and download.
If you do not have slave connected, you get no ACK, so you will see just first byte transmitted from master. Below is connection and bus signals I had

Slave disconnected

IMG_1677.jpg 

PetrS_1-1759822330991.png

Slave connected 

IMG_1678.JPG 

PetrS_2-1759822349449.png

BR, Petr

 

0 件の賞賛
返信
987件の閲覧回数
Andrew101
Contributor II
The board and the wires I used are exactly same as you but I haven't seen any signal on the software. Do you have any advices for me?
0 件の賞賛
返信