CAN bus SendFrameExt() loss 1 message

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN bus SendFrameExt() loss 1 message

Jump to solution
678 Views
aaronlee
Contributor V

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

Tags (1)
0 Kudos
1 Solution
462 Views
aaronlee
Contributor V

Hi,

I resolve the issue.

CLKSRC.png

CLKSRC_01.png

CLKSRC_02.png

Click the Advanced and change the Clock source from Auto select to MSCAN0ExtClk in Processor Expert.

Best Regards,

Aaron

View solution in original post

0 Kudos
1 Reply
463 Views
aaronlee
Contributor V

Hi,

I resolve the issue.

CLKSRC.png

CLKSRC_01.png

CLKSRC_02.png

Click the Advanced and change the Clock source from Auto select to MSCAN0ExtClk in Processor Expert.

Best Regards,

Aaron

0 Kudos