S32K3X4EVB-Q257 LPI2C_1 PTF7, PTF8 can't output I2C signal but PTC6, PTC7 worked fine

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

S32K3X4EVB-Q257 LPI2C_1 PTF7, PTF8 can't output I2C signal but PTC6, PTC7 worked fine

Jump to solution
422 Views
Neil1210
Contributor I

When I configured PTF7 and PTF8 (LPI2C_1) as I2C master on S32K3X4EVB-Q257,
I can't measure the I2C signal form PTF7 and PTF8.
I have already pulled up resistors of 4.7K with VDD on PTF7 and PTF8.
But it worked fine if I configured LPI2C_1 pins as PTC6 and PTC7.

My software environment is S32DS 3.4 + RTD version 2.0.0.
Here is my configuration:

Neil1210_2-1686790770206.png

Neil1210_0-1686790622758.png

 


Here is my source code:

#define TRANSFER_SIZE 8U
#define I2C_INSTANCE   1U
uint8 txBuffer[TRANSFER_SIZE] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7};
 
int main(void)
{
    /* Init clock  */
    Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
/* Enable LPI2C interrupts */
    IntCtrl_Ip_Init(&IntCtrlConfig_0);
    IntCtrl_Ip_ConfigIrqRouting(&intRouteConfig);
/* Init Pins */
Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
/* Init master module */
Lpi2c_Ip_MasterInit(I2C_INSTANCE, &I2c_Lpi2cMasterChannel0_VS_0);
/* Send data non-blocking */
while (TRUE) {
Lpi2c_Ip_MasterSendDataBlocking(I2C_INSTANCE, txBuffer, TRANSFER_SIZE, TRUE, 1000);
}
 
    return 0;
}
 
#ifdef __cplusplus
}
#endif

Is there any suggestion to make PTF7 and PTF8 to output I2C signal?  

Tags (2)
0 Kudos
1 Solution
395 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Neil1210

I just modifed this area only(I am not using external pull-up resistors)

Senlent_0-1686810581046.png

Logic analyzer connection:

Senlent_2-1686810804634.png

and the test result:

Senlent_1-1686810681344.png

seem it work fine on myside.

View solution in original post

0 Kudos
1 Reply
396 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Neil1210

I just modifed this area only(I am not using external pull-up resistors)

Senlent_0-1686810581046.png

Logic analyzer connection:

Senlent_2-1686810804634.png

and the test result:

Senlent_1-1686810681344.png

seem it work fine on myside.

0 Kudos