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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,579件の閲覧回数
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 件の賞賛
8 返答(返信)

1,781件の閲覧回数
stuartbill5896
Contributor I
0 件の賞賛

1,788件の閲覧回数
stuartbill5896
Contributor I
0 件の賞賛

1,795件の閲覧回数
stuartbill5896
Contributor I
0 件の賞賛

1,801件の閲覧回数
stuartbill5896
Contributor I

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

 

0 件の賞賛

2,227件の閲覧回数
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,

 

2,259件の閲覧回数
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

タグ(1)
0 件の賞賛

2,565件の閲覧回数
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 件の賞賛

2,316件の閲覧回数
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 件の賞賛