i2c in interrupt mode is not working in s32k116 (S32DS3.5)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i2c in interrupt mode is not working in s32k116 (S32DS3.5)

625 次查看
Ranjitha
Contributor I

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

Ranjitha_0-1723444401248.png

and these are my peripheral settings 

Ranjitha_1-1723444469254.png

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 

 

标记 (1)
0 项奖励
回复
1 回复

587 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

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:

Julin_AragnM_0-1723487158820.png

Julin_AragnM_1-1723487266847.png

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

 

0 项奖励
回复