AnsweredAssumed Answered

CAN bus SendFrameExt() loss 1 message

Question asked by Aaron Lee on Oct 19, 2018
Latest reply on Dec 6, 2018 by Aaron Lee

Hi,

We are using S12ZVCA for my project. We have a issue in CAN1_SendFrameExt().

bLength = 1;
pCAN_Frame_Tx = bCAN_Frame_Tx;
for(i=100;i<200;i++)
{
   dwCAN_ID = i;
   *pCAN_Frame_Tx = i-100;
   while((CAN0TFLG & 0x07U) == 0U);
   CAN1_SendFrameExt(dwCAN_ID, DATA_FRAME, bLength, bCAN_Frame_Tx);
}

It is loss the 3rd message.

OUTPUT:

00 64 00
00 65 01  (loss 00 66 02)
00 67 03
00 68 04
00 69 05
00 6A 06
00 6B 07
00 6C 08
00 6D 09
00 6E 0A
00 6F 0B
00 70 0C
......

Do you have any recommend?

 

Best Regards,

Aaron

Outcomes