No SCL/SDA Signals when using I2C Send as Master

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

No SCL/SDA Signals when using I2C Send as Master

Jump to solution
1,586 Views
phil_b
Contributor I

I have set up LPI2C1 as Master but get no outputs when attempting to send. I have pull-up resistors and the signals are connected to 1 slave device only. Please see below. What are some possible reasons for this problem?

philbylsma_0-1752593949580.png

 

philbylsma_1-1752594043418.png

Initialization:

/* set I2C1 interrupt */
IntCtrl_Ip_EnableIrq(LPI2C1_IRQn);
IntCtrl_Ip_InstallHandler(LPI2C1_IRQn, LPI2C1_Master_Slave_IRQHandler, NULL_PTR);

/* Init lpi2c in master mode */
Lpi2c_Ip_MasterInit(LPI2C_CHANNEL_0, &I2c_Lpi2cMasterChannel0);

Send data:

boolean I2C_read_fault_status(uint8 *rx_buffer)
{
TxBuff[0] = 0x78;
  if (LPI2C_IP_SUCCESS_STATUS == Lpi2c_Ip_MasterSendData(LPI2C_CHANNEL_0, (uint8 *)&TxBuff[0], 1U, FALSE))
{
LM5171_data_ptr = rx_buffer;
LM5171_data_len = 1;
return TRUE;
}

 

 

0 Kudos
Reply
1 Solution
1,561 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@phil_b

Could you tell us the part number you're using? Also, the RTD version is ?

If you're using S32K3, could you please try to set this bit and have a try again.

Senlent_0-1752647007483.png

 

 

View solution in original post

0 Kudos
Reply
4 Replies
1,562 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@phil_b

Could you tell us the part number you're using? Also, the RTD version is ?

If you're using S32K3, could you please try to set this bit and have a try again.

Senlent_0-1752647007483.png

 

 

0 Kudos
Reply
1,539 Views
phil_b
Contributor I
We are using the S32K324 part with the S32DS3.5 debugger and a Multilink FX Universal interface. Our RTD version is 4.00 HF02. There is not an option in the LPI2C peripheral to enable debugging (like there is in other peripherals). I did not think to set the option manually! When I set the DBGEN bit, the signals work as expected.
0 Kudos
Reply
1,570 Views
phil_b
Contributor I
The signals were missing while I was running in Debug mode. When I removed the debug connector, the signals were there! Is there a way to see the signals while in Debug mode?
0 Kudos
Reply
1,553 Views
db16122
Contributor III

What kind of debug mode you are using? specific debugger or on board debugger?

 

0 Kudos
Reply