using FLEXIO I2C to replace LPI2C function

cancel
Showing results for 
Search instead for 
Did you mean: 

using FLEXIO I2C to replace LPI2C function

156 Views
Contributor I

Hi,

I want to use the demo project "flexion_i2c_s32kl46" to read fxls8962's acceleration data( in fact, I can use the LPI2C function to get the data, but the keeping time during reading I2C is not fixed, so I want to try FLEXIO I2C to compare it). I read the demo project's document, and this project uses PA11, PA0 as SCL and SDA. And my S32 board uses the PA2 , PA3. So I want to change the IO configuration in the struct "g_pin_mux_InitConfigArr" from file  pin_mux.c . But this does not work. So can you tell me what I need to do to use FLEXIO i2c function to read fxls8962's data? Thank you.

Yanpo, li

Best regards,

Labels (1)
0 Kudos
1 Reply

27 Views
NXP Employee
NXP Employee

Hi,

To change the pins for I2C you have to update pins configuration:

pastedImage_4.png

After this update FlexIO component with the pins used by your application

pastedImage_5.png

Best regards,

Razvan

0 Kudos