CAN bus SendFrameExt() loss 1 message

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

CAN bus SendFrameExt() loss 1 message

跳至解决方案
724 次查看
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

标记 (1)
0 项奖励
1 解答
508 次查看
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 项奖励
1 回复
509 次查看
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 项奖励