Good day to all!
I am using IMX8ULPIEC processor and I want to use i2c3 on m33 core.
I looked at sai_edma_transfer example (for evk9 board)and encountered a problem. The example uses lpi2c0, I would like to use lpi2c3, replacing 0 with 3 in places related to lpi2c I did not achieve the result. According to my assumption, lpi2c3 is on the fusion bus pcc2. Is it possible to use i2c3 with the m33 core and maybe there is some example of initialization and sending data?
Hi @Sandroom!
Thank you for contacting NXP Support!
The changes that you made was only on sai_edma_transfer.c?
What are the changes that you made off?
Do you update the pin_mux.c to configure the pins?
Best Regards!
Chavira
Chavira, thank you for helping me with my question.
I made the following changes to pin_mux:
IOMUXC_SetPinMux(IOMUXC_PTA14_PTA14, 0U);
IOMUXC_SetPinConfig(IOMUXC_PTA14_PTA14,
IOMUXC_PCR_OBE_MASK);
IOMUXC_SetPinMux(IOMUXC_PTA15_PTA15, 0U);
IOMUXC_SetPinConfig(IOMUXC_PTA15_PTA15,
IOMUXC_PCR_OBE_MASK);
IOMUXC_SetPinMux(IOMUXC_PTA14_I3C0_SCL, 0U);
IOMUXC_SetPinConfig(IOMUXC_PTA14_I3C0_SCL,
IOMUXC_PCR_ODE_MASK);
IOMUXC_SetPinMux(IOMUXC_PTA15_I3C0_SDA, 0U);
IOMUXC_SetPinConfig(IOMUXC_PTA15_I3C0_SDA,
IOMUXC_PCR_ODE_MASK);
in sai_edma_transfer.c
i use Fusion_Init() and some else functions:
Hi @Sandroom!
You configured wrong the pins for i2c3, you are configuring the pins for i3c0, you should use ptb8-9 or ptb11-12.
Best Regards!
Chavira