i am using s32k116 controller in S32DS version 3.5
i was earlier using i2c in blocking method now i have changed it to interrupt based and its not working
This is how i am doing init configuration
and these are my peripheral settings
and the API's i used to send and receive data is
LPI2C_DRV_MasterReceiveData, LPI2C_DRV_MasterSendData
Is there anything i am missing what can be wrong
Hi @Ranjitha,
You can refer to the I2C PAL example from the SDK. The initialization for interrupts and callbacks is done by I2C_MasterInit/I2C_SlaveInit.
You can configure the master callback in the I2C_PAL component and test with a breakpoint:
Also, is there a reason you are using FlexCAN driver (FLEXCAN_DRV_InstallEventCallback) to install the callback? This may be why your code is not working.
Best regards,
Julián