I2c in s32k2358

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

I2c in s32k2358

Jump to solution
700 Views
Shivanand
Contributor II

Hello nxp community,

I'm using s332k358 controller and trying to communicate to slave on I2c bus , i used MCAL I2c driver LPI2C . I'm unable to communnicate with the slave devices, i tried to check the signals in oscilloscope , i didnt observe I2C SCLK , function returned error. Is there any example project for I2C sync transmit and async transmit using MCAL driver

0 Kudos
Reply
1 Solution
595 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Shivanand 

Please refer to the following thread as an example of LPI2C0 configured as Master and LPI2C1 as Slave, using DMA.

Example S32K324 I2C Transmit & Receive Using DMA DS3.5 RTD300

It is not specifically designed for your device, but the functionality is similar and may serve as a useful reference.

View solution in original post

0 Kudos
Reply
3 Replies
677 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Shivanand 

Yes, example codes for I2C are included with the RTDs. You can find them under the following names:

  • I2c_Example_S32K358 – for MCAL drivers
  • I2c_Ip_Example_S32K358 – for IP drivers

Additionally, I recommend reviewing the S32K3_S32M27x I2C Driver Integration Manual and the User Manual included with the RTDs. These documents provide detailed information about the driver, including its limitations, hardware and software requirements, usage instructions, and configuration guidelines. 

You can typically find these documents at the following location: C:\NXP\S32DS.3.6.2\S32DS\software\PlatformSDK_S32K3\RTD\I2c_TS_T40D34M60I0R0\doc

 

BR, VaneB

0 Kudos
Reply
620 Views
Shivanand
Contributor II

Hi @VaneB 
The Example projects  i found in RTD's are flexio I2c as master and I2c as slave . Is there any projects which involves I2c as master ?

Shivanand_0-1757396468190.png

 

Tags (1)
0 Kudos
Reply
596 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Shivanand 

Please refer to the following thread as an example of LPI2C0 configured as Master and LPI2C1 as Slave, using DMA.

Example S32K324 I2C Transmit & Receive Using DMA DS3.5 RTD300

It is not specifically designed for your device, but the functionality is similar and may serve as a useful reference.

0 Kudos
Reply