Hi.
I'm testing a simple CAN application from Simulink. I have configured two can ports with 500kbps and two messages each one.
I connect a USB to CAN (peak) and after restarting the MCU the CAN works properly, but if I disconnect the can cable and I reconnect again there is no traffic. If I restart again the MCU the CAN starts working properly. In other MBDT (Leopard, Komodo) there is an options to restart automatically the CANbus after a BUS off event, so I ask where can I do the same for this MPC5744P.
My HW is: MPC5744P, Eval Board and USB to CAN (Peak).
Thanks,
Miguel.
Hello @hbhnhbnhj1
We had a similar discussion on this thread here, even the topic handles the S32K platform, the solution might be similar. Of course, you have to check the SDK API for a similar function regarding the AbortTransfer action.
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Reset-CAN-Bus-Silence/m-p/1190321
Hope this helps,
Marius
Hi @mariuslucianand , thanks for your reply.
How do I know if the AbortTransfer function exist in my SDK API ??
The environment I used is as follow,
*MPC5744P : rev E1
*OS : Windows 11 21H2
*Matlab : R2018a with MBD Toolbox v3.2
*S32DS : v2.1
Hi @mariuslucianand @PetrS @adriantudor
I add the modified custom code to CAN example code and try to build it.
However, the build is failed, the end of result is shown in figure below.
Detailed build result is attached as【flexcan_master_xfer_status_mpc574x_build_20220420_125122.txt】, and the test code is attached as【flexcan_master_xfer_status_mpc574x.zip】.
Please help me solve this problem, thank you.
I also have this question, can anyone help, thanks.