FlexCAN Rx non-blocking function for K70

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

FlexCAN Rx non-blocking function for K70

670件の閲覧回数
vasanthakumarra
Contributor II

Hi,

I am using K70 board with MQX RTOS and trying to test FlexCAN. Example code is working fine.

Is there any driver function to check the FlexCAN receive buffer and get back the ID without blocking?

FLEXCAN_Rx_message function used in the example code is blocking when there is no CAN msg in the network.

My requirement is to have a timer and in the interrupt function check the buffer for any data and set flags based on the msg ID received or just exit the interrupt function without blocking.

With Regards,

Vasanth.

0 件の賞賛
2 返答(返信)

465件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Vasanthakumar:

Unfortunately current MQX flexcan driver not support the timeout feature as you mentioned. I would suggest you implement it by yourself.

Regards

Daniel

0 件の賞賛

465件の閲覧回数
vasanthakumarra
Contributor II

Hi Daniel,

Thanks for the info and sorry for late reply.

Will try to implement.

With Regards,

Vasanth.

0 件の賞賛