Cannot Send FCAN Messages to Second CAN Bus on MPC5777C (MPC5775B EVB)

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Send FCAN Messages to Second CAN Bus on MPC5777C (MPC5775B EVB)

1,366 Views
rsating
Contributor III

Referring to the schematic for CAN Bus #2 of the MPC5775B Reference Design:

MP5775_FCAN_SC.png

And S32DS Component Inspector to translate MPC pins to convention used by MBDT:

MP5775_FCAN_AC20.png

MP5775_FCAN_AD20.png

The only CAN Bus selection that includes these pins is CAN Bus 3:

MP5775_FCAN_CAN-Bus-3.png

However, CAN Bus 3 is not available in the pick list for the FCAN Send block:

MPC5777C_FCAN_Send_Parameters.png

This blocks us from using the second CAN Bus interface of the MPC5775B EVB.

This looks like a bug in MBDT.

0 Kudos
8 Replies

568 Views
stuartbill5896
Contributor I
0 Kudos

575 Views
stuartbill5896
Contributor I
0 Kudos

582 Views
stuartbill5896
Contributor I
0 Kudos

588 Views
stuartbill5896
Contributor I

or receive on the second CAN b                                 http://www.myaccountaccess.me/myaccountaccess-com/

 

0 Kudos

1,014 Views
user_N
Contributor II

Hello, Sir

 I think you have to communicate with TJA1145 by dspi to let TJA1145 enter the 'CAN Active Mode'.

   Did you do this?

   When I tried to use MCAN2, I have to send messages to TJA1145 by dspi. I've succeed to get message with this method. (I used MCAN blockset.)

   

1.PNG

 

   TJA1145.fm (nxp.com) 

 

Regards,

 

1,046 Views
Crawford89
Contributor I

Hello,

Please have a look at this thread https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Build-Fails-When-Target-MCU-gt-Family-is-s... 

Here, we've provided a patch for the MPC5775B/E that has to be applied to the current installation folder of the toolbox. 

Also, on the board there are two CAN instances, CAN0 and CAN1. Please try on both of them. The difference is the transceiver they are using, one of them may require some configurations.

 

Thanks and regards

Tags (1)
0 Kudos

1,352 Views
rsating
Contributor III

The FCAN Receive block has the same problem:

MPC5777C_FCAN_Receive_Parameters.png

The FCAN Rx Complete block is ok, the pick list includes Can Bus 3:

MPC5777C_FCAN_Rx-Complete_Parameters.png

The result is that MBDT can neither send nor receive on the second CAN bus on the MPC5775B EVB.

 

0 Kudos

1,103 Views
paulvlase
NXP Employee
NXP Employee

Hello @rsating ,

Indeed, it is a bug in the toolbox. I attached a patch that should show all the FlexCAN instances.

 

Steps to apply the patch:

1. Download the attached zip file and unzip it.

2. Run mbd_find_mpc_root() in Matlab to get the root folder there the MPC57xx toolbox is installed.

3. Close Matlab.

4. Open the mpc57xx_flexcan_patch.exe file and extract it's contents to the root folder. Press Yes to ALL when asked.

 

Regards,

Paul

0 Kudos