Hello,
I am trying to communicate with a sensor through SENT protocol via interrupt mode. I'm using RTD's with the following configuration:
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
Hello Rita,
Thank for your feedback.
May you try to enable Expanding range mode?
#define FLEXIO_SENT_IP_EXPANDING_RANGE_MODE (STD_ON)
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.
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