I used the CAN function.
But the RX code just run one time.
How to fix the question.
I can not build your project in KDS or CodeWarrior.
Would you please try to test the receive function descripted in "Receiving data frame without interrupt service (polling)" example?
MyCANPtr = CAN1_Init(NULL); /* Initialization of CAN1 component */
while (!DataFrameRxFlg) { /* Wait until data frame is received */
CAN1_Main(MyCANPtr);
}
Frame.Data = InpData; /* Set pointer to InpData buffer */
Error = CAN1_ReadFrame(MyCANPtr, 0U, &Frame);
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------