MIMXRT-685: I2C: Configuring I2C using FlexComm1/FlexComm2 (Other than FC4)

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

MIMXRT-685: I2C: Configuring I2C using FlexComm1/FlexComm2 (Other than FC4)

799 Views
shahridzy
Contributor I

Hi Team, 

I have been trying to configure I2C using Flexcomm 2.I was successfully able to execute the sample code present in SDK. (SDK_2_11_1_EVK MIMXRT685\boards\evkmimxrt685\driver_examples\i2c\polling_b2b\master). This code uses FC4 to configure I2C.
I want to configure I2C using other Flexcomm ports since the project I am working on requires me to use 2 I2Cs simultaneously.
I am not able to establish a connection between master and slave and I do not see any signals going through the master over Saleae logic Analyzer.
I am trying to execute the same example code with changes. Following are the snapshot of the changes made in the sample code (SDK_2_11_1_EVK MIMXRT685\boards\evkmimxrt685\driver_examples\i2c\polling_b2b\master). in order to shift from FC4 to FC2.

shahridzy_0-1658510846552.png

shahridzy_1-1658510855431.png

Board used: MIMXRT-685; IDE used: Keil 

Pin Connections: 

J-28_Pin-9        P0_17_FC2_SDA
J-28_Pin-10      P0_18_FC2_SCL

Thank you!

0 Kudos
Reply
2 Replies

778 Views
shahridzy
Contributor I

Also, tried adding FC2 configuration through the pin config tool in MCUxpresso. The utility added them to the pin_mux.c and clock_config.c file. Still same results.

shahridzy_0-1658776459610.png

 

0 Kudos
Reply

766 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

To understand your case, you are trying to configure an I2C [master Flexcomm2] and another I2C [slave Flexcomm4], that I understood, tell me if I'm right, to give you more information. I will wait for your comments.

All my future recommendations will be based on the IDE MCUXpresso.

Best regards,
Pavel

0 Kudos
Reply