keaz64 CAN RX Question

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

keaz64 CAN RX Question

1,042件の閲覧回数
james032903
Contributor I

I used the CAN function.

But the RX code just run one time.

How to fix the question.

ラベル(1)
0 件の賞賛
返信
1 返信

952件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

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);

Receiving data frame without interrupt service (polling).png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信