An error of automatically stop CAN transmission in CAN communication program generated by MBDT

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

An error of automatically stop CAN transmission in CAN communication program generated by MBDT

648 Views
19627152
Contributor I

Hello everyone,

When I used MBDT (V3.1.0) in Simulink (Matlab 2019b) to program my CAN communication software, I encountered a stubborn error.

I set up three messages in MPC5744p board: Msg #0(NO.3 in the picture below)-send once at startup; Msg #1(NO.5 in the picture below) -send every 10ms; Msg #2(NO.6 in the picture below) -send every 10ms. And MPC5744p board is configured to receive one of two messages(NO.1&NO.2 in the picture below) sent by other boards (coded by C) by FCAN_Rx_Complete_Isr module and CAN .dbc decoder.

The error is that whether I set the interrupt period of the PIT timer to 10ms, 1ms, or 5ms, the MPC5744p board will stop sending CAN messages automatically after running for a period of time.

19627152_0-1599181912932.png

 

The parts of the Simulink model of CAN transmission and PIT are shown below:

2.png

 QQ截图20200904093716.png

 

Please HELP me. Thanks!

 

Labels (1)
0 Kudos
0 Replies