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
Solved! Go to Solution.
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.
Hi @Shivanand
Yes, example codes for I2C are included with the RTDs. You can find them under the following names:
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
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.