S32K344 SENT communication through interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 SENT communication through interrupt

1,108 Views
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 Kudos
Reply
3 Replies

1,051 Views
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 Kudos
Reply

1,052 Views
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 Kudos
Reply

1,053 Views
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 Kudos
Reply