Referring to the schematic for CAN Bus #2 of the MPC5775B Reference Design:
And S32DS Component Inspector to translate MPC pins to convention used by MBDT:
The only CAN Bus selection that includes these pins is CAN Bus 3:
However, CAN Bus 3 is not available in the pick list for the FCAN Send block:
This blocks us from using the second CAN Bus interface of the MPC5775B EVB.
This looks like a bug in MBDT.
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.)
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
The FCAN Receive block has the same problem:
The FCAN Rx Complete block is ok, the pick list includes Can Bus 3:
The result is that MBDT can neither send nor receive on the second CAN bus on the MPC5775B EVB.
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 theexe file and extract it's contents to the root folder. Press Yes to ALL when asked.