CAN frames are sent repeatedly

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

CAN frames are sent repeatedly

1,653件の閲覧回数
RegulusCheng
Contributor III

Hi, @paulvlase 

  • NXP RDVCU5775EVM
  • Simulink 2019b
  • NXP_MBDToolbox_MPC57xx 3.2

I was lucky enough to read your previous post, which helped me solve the problem of MCAN not sending and receiving.(Solved: Cannot Send/Get CAN Messages on MPC5775B EVB - NXP Community)

However, I have come across some new problems and would like your help or anyone else's.

1. When I used the example program to set up the CAN sending node, I found that the message would be sent repeatedly: the running period of my MCAN_SEND module was 0.1s, but when I used the CAN analysis software to receive it, I found that the MCU would send the same frame of message repeatedly several times in a very short time, and the time difference between the messages with different contents was about 0.1s, which is correct.  Does anyone know why that is? What's the solution?

2. Under the same Settings, MCAN0 can successfully send and receive packets, but MCAN1 cannot send and receive frames normally. I noticed that MCAN0 and MCAN1 use different transceivers, MCAN0 uses TJA1045T/FD, which is driven by DSPI, does it require special Settings?

Here are my Settings:

RegulusCheng_0-1687259940722.pngRegulusCheng_1-1687259970125.png

and here are the frames I received from the CAN analyzer:

RegulusCheng_2-1687260511463.jpeg

 

 

 

0 件の賞賛
返信
3 返答(返信)

1,493件の閲覧回数
paulvlase
NXP Employee
NXP Employee

Hello @RegulusCheng ,

 

Could you send the model to try it on my side? Or if it not possible the *_mbd_rtw folder with the generated code?

 

Regards,

Paul

0 件の賞賛
返信

1,546件の閲覧回数
RegulusCheng
Contributor III

@mariuslucianand 

Could you please take a look at this problem, too? Or help me @ someone be good at it. This post may be missed.

0 件の賞賛
返信

1,650件の閲覧回数
RegulusCheng
Contributor III

If the sending period is not set by the execution period of the MCAN_SEND module, how to set the sending period of the message?

0 件の賞賛
返信