S32K344 SENT communication through interrupt

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

S32K344 SENT communication through interrupt

907件の閲覧回数
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 返答(返信)

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

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

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