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.
The parts of the Simulink model of CAN transmission and PIT are shown below:
Please HELP me. Thanks!