Flexcan Receiving a data Frame twice,one with the Full Code and One with the Empty Code.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Flexcan Receiving a data Frame twice,one with the Full Code and One with the Empty Code.

989 次查看
bhanuvats
Contributor I

Hello,

 

Greetings from my side.

 

I am using IMX 6.0 Controller's Board for the Development of a CAN Application.One another CAN node is continuously sending a Data Frame to the Board at Every 1 Second.But when the Board Recieves the Data,It is receiving

it twice. Interestingly The first Frame is having Code Value as 0x02 and the another Frame is having Code value as 0x04. The frame having the 0x04 ID is having the same ID but the data field comes receives some corrupted data or Null value.In my CAN Application we require to receive a Particular Set of frames(5-6 frames) having same ID in a defined order.But as the Board is receiving every data from a ID two times,so the CAN Application is not working.

Attached is my Driver code for Receiving the data.Please help me out in Resolving this Issue.

Original Attachment has been moved to: CAN_Recieve.txt.zip

标记 (1)
0 项奖励
回复
1 回复

896 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Have you checked with an analyzer that the messages sent by the other node are correct?

The SDK contians a FlexCAN test that you may find useful. https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&location=null&WT_TYPE=Software%...

Best Regards,

Alejandro

0 项奖励
回复