I2C config error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I2C config error

跳至解决方案
1,273 次查看
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 解答
1,155 次查看
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,244 次查看
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,241 次查看
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,224 次查看
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,203 次查看
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 项奖励
回复
1,156 次查看
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 项奖励
回复
1,152 次查看
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 项奖励
回复