I2C config error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C config error

Jump to solution
1,124 Views
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 Kudos
Reply
1 Solution
1,006 Views
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

 

View solution in original post

0 Kudos
Reply
6 Replies
1,095 Views
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 Kudos
Reply
1,092 Views
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 Kudos
Reply
1,075 Views
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 Kudos
Reply
1,054 Views
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 Kudos
Reply
1,007 Views
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 Kudos
Reply
1,003 Views
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 Kudos
Reply