S32K344 SENT communication through interrupt

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

S32K344 SENT communication through interrupt

908 次查看
Rmpr
Contributor II

Hello,

I am trying to communicate with a sensor through SENT protocol via interrupt mode. I'm using RTD's with the following configuration:

Rmpr_0-1733848333399.pngRmpr_1-1733848360250.png

 

The interrupt is defined and when debugging it enters inside the interrupt handler. But I can't seem to figure out how to actually get the message data. I'm using the following function

Flexio_Sent_Ip_IrqHandler

 

But it's not working. What am I doing wrong?

Thank you

0 项奖励
回复
3 回复数

851 次查看
nxp52415
NXP Employee
NXP Employee

Hello Rita,

 

Thank for your feedback.

 

May you try to enable Expanding range mode?

 #define FLEXIO_SENT_IP_EXPANDING_RANGE_MODE   (STD_ON)

0 项奖励
回复

852 次查看
nxp52415
NXP Employee
NXP Employee

Hello Hector,

Yes that function is being called. Our problem seems to be in the Flexio_Sent_Ip_StartTransfer function, it enters the STATUS_SEBT_FAST_IDLE case and always fails the PulseWidthTick.

0 项奖励
回复

853 次查看
nxp52415
NXP Employee
NXP Employee

Hello Mrs. Rodrigues,

 

I am writing you because the ticket you created to us.

 

Could you please check if following function is being called? That should be the one processing the message buffer.

 

void Flexio_Sent_Ip_IRQMsgDataHandler(const uint8 Instance, const uint8 HwChannel, uint32 TimerVal)

 

The buffer pointed by this pointer should contain the received messages:

 

Flexio_Sent_Ip_axFastData

0 项奖励
回复