MCF5235 FlexCAN transmits continuously

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

MCF5235 FlexCAN transmits continuously

ソリューションへジャンプ
1,278件の閲覧回数
JulienP
Contributor II

Hello,


I'm running into a very strange problem with the FlexCAN. Quick example:

- I'm trying to transmit 0x18DAEEFB | 02-10-7E-FF-FF-FF-FF-BB. It is sent once, no errstat or errcnt, it works fine.

- I'm trying to transmit 0x18DAEEFB | 02-10-7E-FF-FF-FF-FF-CC. FlexCAN is transmitting continuously, errcnt is inscreasing, BIT1ERR, BUSOFF and others bit error are set (BUSOFF interrupt is disabled). The Control/Status register of the MB remains activate. The only way to stop this mess is to set the MB to inactive state by myself. Of course, the frame is sent to the same target, and there are no differences between those two frames for the target. In addition, the target is answering many times as well.

- All the frames are transmitted well (once) using LoopBack mode.

 

This is just one example, but it is doing the same with many frames. My functions are in attachment.

 

Do I do something wrong?

ラベル(1)
0 件の賞賛
返信
1 解決策
601件の閲覧回数
JulienP
Contributor II

I solved it using EXTAL clock instead of PLL clock!

 

Bye!

 

Julien.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
601件の閲覧回数
Britti1982
Contributor I

I'm new in the world MQX
 I work with MCF5225evb recently and I am trying the sample project for use on the FlexCAN demoboard.
 making debugging and looking CANL and CANH bus oscilloscope I see that the frames are continuous, even if I start with debugging in the STOP condition.
 Why does this happen?
 and then because the serial transmission is complete even if there are other nodes send their ACKs connected on the bus?

help me please.

0 件の賞賛
返信
602件の閲覧回数
JulienP
Contributor II

I solved it using EXTAL clock instead of PLL clock!

 

Bye!

 

Julien.

0 件の賞賛
返信