CAN recovery MPC5744P

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

CAN recovery MPC5744P

1,533 Views
miguelallende
Contributor I

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. 

0 Kudos
4 Replies

1,314 Views
mariuslucianand
NXP Employee
NXP Employee

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

0 Kudos

1,055 Views
hbhnhbnhj1
Contributor III

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

hbhnhbnhj1_0-1650429657581.png



*Matlab : R2018a with MBD Toolbox v3.2

hbhnhbnhj1_1-1650429657583.png

hbhnhbnhj1_2-1650429657804.png


*S32DS : v2.1

hbhnhbnhj1_3-1650429657584.png

 

0 Kudos

1,051 Views
hbhnhbnhj1
Contributor III

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.

hbhnhbnhj1_0-1650430568288.png

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. 

0 Kudos

1,316 Views
hbhnhbnhj1
Contributor III

I also have this question, can anyone help, thanks.

0 Kudos