hello everybody
finally, I success i2c communication using LPI2C.
but another problem has occured.
I using LPTMR example. lptmr_periodic_interrupt_s32k116
and, add components i2c. set master mode 50kHz
and than,
void LPTMR_ISR(void)
{
/* Clear compare flag */
LPTMR_DRV_ClearCompareFlag(INST_LPTMR1);
/* Toggle LED_GREEN */
PINS_DRV_TogglePins(LED_GPIO_PORT, (1 << LED_GREEN));
I2C_MasterSendDataBlocking(&i2c1_instance, masterTxBuffer, TRANSFER_SIZE, false, 10);
masterTxBuffer[0] = 0x01;
I2C_MasterReceiveDataBlocking(&i2c1_instance, masterTxBuffer, TRANSFER_SIZE, false, 10);
}
in LPTMR ISR loop.
but, when start program, It going to OSIF_SemaWait(&(master->idleSemaphore), 0); function in LPI2C_DRV_MasterSendDataBlocking.
why this? how to escape OSIF_SemaWait?
it is hard to using LPTMR with LPI2C?