CAN bus SendFrameExt() loss 1 message

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

CAN bus SendFrameExt() loss 1 message

ソリューションへジャンプ
1,457件の閲覧回数
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 解決策
1,241件の閲覧回数
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 返信
1,242件の閲覧回数
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 件の賞賛
返信