i.MX93 M33 lpi2c Master not function

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

i.MX93 M33 lpi2c Master not function

Jump to solution
2,481 Views
nyc
Contributor II

I’m running the lpi2c_interrupt_b2b_transfer_master_cm33 example on the MCIMX93-EVK.

After calling LPI2C_MasterTransferNonBlocking(), the SDA line stays low, and the SCL line keeps clocking continuously.

The clock only stops after I externally pull the SCL pin low, and then SDA goes high again.

Has anyone seen this behavior before or know what might cause it? Any suggestions would be greatly appreciated. Thank you!

nyc_0-1770976750816.png

 

Tags (2)
0 Kudos
Reply
1 Solution
1,910 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @nyc 

I hope you are doing very well.

I could not replicate the issue.

The only difference that I did in my environment is putting the SION bit to 1U for SDA and SCL:

IOMUXC_SetPinMux(IOMUXC_PAD_I2C1_SCL__LPI2C1_SCL, 1U);
IOMUXC_SetPinMux(IOMUXC_PAD_I2C1_SDA__LPI2C1_SDA, 1U);

 

Best regards,

Salas.

View solution in original post

0 Kudos
Reply
11 Replies
2,405 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @nyc 

I hope you are doing very well.

 

Could you please share the SDK version that you are using?

I want to replicate by my side.

 

Best regards,

Salas.

0 Kudos
Reply
2,325 Views
nyc
Contributor II

Hi@Manuel_Salas please help me~

0 Kudos
Reply
2,306 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @nyc 

 

I tested the same by my side but I had not issues. I connected two i.MX93, one as Master and one as Slave.

I could not replicate your issue.

Is there any step I am missing to replicate your issue?

I am aligned with the same environment and same example:

/SDK_25_09_00_MCIMX93-EVK/boards/mcimx93evk/driver_examples/lpi2c/interrupt_b2b_transfer/master$

 

Bet regards,

Salas.

 

0 Kudos
Reply
2,303 Views
nyc
Contributor II

@Manuel_Salas 
Could you test the i2c master without connecting to slave?
I've tested this case with FLEXIO I2c, it would product 8 clock and didn't ack then end the transfer, but the native i2c have the problem.

0 Kudos
Reply
2,282 Views
nyc
Contributor II
I've changed to using i2c2
IOMUXC_SetPinMux(IOMUXC_PAD_I2C2_SDA__LPI2C2_SDA, 0U);
IOMUXC_SetPinConfig(IOMUXC_PAD_I2C2_SDA__LPI2C2_SDA,
IOMUXC_PAD_DSE(15U) |
IOMUXC_PAD_FSEL1(2U) |
IOMUXC_PAD_PU_MASK |
IOMUXC_PAD_OD_MASK);
IOMUXC_SetPinMux(IOMUXC_PAD_I2C2_SCL__LPI2C2_SCL, 0U);
IOMUXC_SetPinConfig(IOMUXC_PAD_I2C2_SCL__LPI2C2_SCL,
IOMUXC_PAD_DSE(15U) |
IOMUXC_PAD_FSEL1(2U) |
IOMUXC_PAD_PU_MASK |
IOMUXC_PAD_OD_MASK);
0 Kudos
Reply
2,186 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @nyc 

 

Is now working with I2C2?

Or having the same issue?

Best regards,

Salas.

0 Kudos
Reply
2,160 Views
nyc
Contributor II
@Manuel_Salas
still can't work with LPI2C_MasterTransferNonBlocking(),
only can work with FLEXIO I2C or I2C Polling
0 Kudos
Reply
1,911 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @nyc 

I hope you are doing very well.

I could not replicate the issue.

The only difference that I did in my environment is putting the SION bit to 1U for SDA and SCL:

IOMUXC_SetPinMux(IOMUXC_PAD_I2C1_SCL__LPI2C1_SCL, 1U);
IOMUXC_SetPinMux(IOMUXC_PAD_I2C1_SDA__LPI2C1_SDA, 1U);

 

Best regards,

Salas.

0 Kudos
Reply
2,296 Views
nyc
Contributor II
correction: *it would product 9 clock
0 Kudos
Reply
2,362 Views
nyc
Contributor II
version:25.09.00
boardId:mcimx93evk
deviceId:MIMX9352xxxxM
coreId:cm33_MIMX9352xxxxM
0 Kudos
Reply
2,427 Views
nyc
Contributor II

Anybody can help?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2317739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2317739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%E2%80%99m%20running%20the%20lpi2c_interrupt_b2b_transfer_master_cm33%20example%20on%20the%20MCIMX93-EVK.%3CBR%20%2F%3E%3CBR%20%2F%3EAfter%20calling%20LPI2C_MasterTransferNonBlocking()%2C%20the%20SDA%20line%20stays%20low%2C%20and%20the%20SCL%20line%20keeps%20clocking%20continuously.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20clock%20only%20stops%20after%20I%20externally%20pull%20the%20SCL%20pin%20low%2C%20and%20then%20SDA%20goes%20high%20again.%3CBR%20%2F%3E%3CBR%20%2F%3EHas%20anyone%20seen%20this%20behavior%20before%20or%20know%20what%20might%20cause%20it%3F%20Any%20suggestions%20would%20be%20greatly%20appreciated.%20Thank%20you!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22nyc_0-1770976750816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376778i90C986AAF3B51A05%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22nyc_0-1770976750816.png%22%20alt%3D%22nyc_0-1770976750816.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321055%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321055%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3Eversion%3A25.09.00%3CBR%20%2F%3EboardId%3Amcimx93evk%3CBR%20%2F%3EdeviceId%3AMIMX9352xxxxM%3CBR%20%2F%3EcoreId%3Acm33_MIMX9352xxxxM%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322320%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3Bplease%20help%20me~%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2318779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258495%22%20target%3D%22_blank%22%3E%40nyc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20you%20are%20doing%20very%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20please%20share%20the%20SDK%20version%20that%20you%20are%20using%3F%3C%2FP%3E%0A%3CP%3EI%20want%20to%20replicate%20by%20my%20side.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2318387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAnybody%20can%20help%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3ECould%20you%20test%20the%20i2c%20master%20without%20connecting%20to%20slave%3F%3CBR%20%2F%3EI've%20tested%20this%20case%20with%20FLEXIO%20I2c%2C%20it%20would%20product%208%20clock%20and%20didn't%20ack%20then%20end%20the%20transfer%2C%20but%20the%20native%20i2c%20have%20the%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322833%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322833%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258495%22%20target%3D%22_blank%22%3E%40nyc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20tested%20the%20same%20by%20my%20side%20but%20I%20had%20not%20issues.%20I%20connected%20two%20i.MX93%2C%20one%20as%20Master%20and%20one%20as%20Slave.%3C%2FP%3E%0A%3CP%3EI%20could%20not%20replicate%20your%20issue.%3C%2FP%3E%0A%3CP%3EIs%20there%20any%20step%20I%20am%20missing%20to%20replicate%20your%20issue%3F%3C%2FP%3E%0A%3CP%3EI%20am%20aligned%20with%20the%20same%20environment%20and%20same%20example%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%2FSDK_25_09_00_MCIMX93-EVK%2Fboards%2Fmcimx93evk%2Fdriver_examples%2Flpi2c%2Finterrupt_b2b_transfer%2Fmaster%24%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBet%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2323699%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2323699%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ecorrection%3A%20*it%20would%20product%209%20clock%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2324180%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324180%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI've%20changed%20to%20using%20i2c2%3CBR%20%2F%3EIOMUXC_SetPinMux(IOMUXC_PAD_I2C2_SDA__LPI2C2_SDA%2C%200U)%3B%3CBR%20%2F%3EIOMUXC_SetPinConfig(IOMUXC_PAD_I2C2_SDA__LPI2C2_SDA%2C%3CBR%20%2F%3EIOMUXC_PAD_DSE(15U)%20%7C%3CBR%20%2F%3EIOMUXC_PAD_FSEL1(2U)%20%7C%3CBR%20%2F%3EIOMUXC_PAD_PU_MASK%20%7C%3CBR%20%2F%3EIOMUXC_PAD_OD_MASK)%3B%3CBR%20%2F%3EIOMUXC_SetPinMux(IOMUXC_PAD_I2C2_SCL__LPI2C2_SCL%2C%200U)%3B%3CBR%20%2F%3EIOMUXC_SetPinConfig(IOMUXC_PAD_I2C2_SCL__LPI2C2_SCL%2C%3CBR%20%2F%3EIOMUXC_PAD_DSE(15U)%20%7C%3CBR%20%2F%3EIOMUXC_PAD_FSEL1(2U)%20%7C%3CBR%20%2F%3EIOMUXC_PAD_PU_MASK%20%7C%3CBR%20%2F%3EIOMUXC_PAD_OD_MASK)%3B%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258495%22%20target%3D%22_blank%22%3E%40nyc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIs%20now%20working%20with%20I2C2%3F%3C%2FP%3E%0A%3CP%3EOr%20having%20the%20same%20issue%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%3CBR%20%2F%3Estill%20can't%20work%20with%20LPI2C_MasterTransferNonBlocking()%2C%3CBR%20%2F%3Eonly%20can%20work%20with%20FLEXIO%20I2C%20or%20I2C%20Polling%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2329267%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20M33%20lpi2c%20Master%20not%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2329267%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258495%22%20target%3D%22_blank%22%3E%40nyc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20you%20are%20doing%20very%20well.%3C%2FP%3E%0A%3CP%3EI%20could%20not%20replicate%20the%20issue.%3C%2FP%3E%0A%3CP%3EThe%20only%20difference%20that%20I%20did%20in%20my%20environment%20is%20putting%20the%20SION%20bit%20to%201U%20for%20SDA%20and%20SCL%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EIOMUXC_SetPinMux%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EIOMUXC_PAD_I2C1_SCL__LPI2C1_SCL%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSTRONG%3E1U%3C%2FSTRONG%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EIOMUXC_SetPinMux%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EIOMUXC_PAD_I2C1_SDA__LPI2C1_SDA%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSTRONG%3E1U%3C%2FSTRONG%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESalas.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E