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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

622件の閲覧回数
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 返信

584件の閲覧回数
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 件の賞賛
返信