S32K312-Q172 CAN transmission failed MBDT

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

S32K312-Q172 CAN transmission failed MBDT

Jump to solution
151 Views
HopeNotWork
Contributor I

Dear NXP,

I'm trying to establish CAN communication between an S32K312-Q172 EVB and a Arduino (Arduino Uno + MCP 2515 CAN) using the MBDT.

I'using the CAN transmit exemple, and I've reffered to configure my Matlab model and the TJA1153 :

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/how-to-use-MBDT-to-initialize-the-TJA11...

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/175845...

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K3x4-Q172-CAN-transmission-failed/td...

But the MCU isn't sending anything.

I can see on freemaster that the status level of the can_write block is 2 and the red LED is on.

The status level of the TJ1153_Init block is 2.

Please give me some advice and help。

Thanks !

MBDT S32K312EVB-Q172 

InitFunction.PNGMainBlock.PNG

0 Kudos
Reply
1 Solution
100 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hello @HopeNotWork 

If you are using the S32K312-EVB, please check its schematics and the transceiver soldered on the board. As far as I know, the S32K312-EVB (as stated on the following link - Block Diagram) uses TJA1043 instead of TJA1153

For testing the CAN communication on the S32K312-EVB, I would recommend you the following steps:

1. Open the s32k3xx_can_transmit_ebt example delivered with the toolbox
2. Change its Hardware Part for S32K312-Q172 from the model's Configuration Parameters3. 3. Click on the TJA1043. This will enable the TJA1043 transceiver initialization, instead of the TJA1153.

Irina_Costachescu_0-1724848862056.png

 

Irina_Costachescu_1-1724848877488.png


4. Build the model and check (e.g using a CAN Analyzer) if the model is able to send messages on the CAN bus.

Could you please try the steps above and let us know if they provide the expected results?

Thank you,

Irina

View solution in original post

1 Reply
101 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hello @HopeNotWork 

If you are using the S32K312-EVB, please check its schematics and the transceiver soldered on the board. As far as I know, the S32K312-EVB (as stated on the following link - Block Diagram) uses TJA1043 instead of TJA1153

For testing the CAN communication on the S32K312-EVB, I would recommend you the following steps:

1. Open the s32k3xx_can_transmit_ebt example delivered with the toolbox
2. Change its Hardware Part for S32K312-Q172 from the model's Configuration Parameters3. 3. Click on the TJA1043. This will enable the TJA1043 transceiver initialization, instead of the TJA1153.

Irina_Costachescu_0-1724848862056.png

 

Irina_Costachescu_1-1724848877488.png


4. Build the model and check (e.g using a CAN Analyzer) if the model is able to send messages on the CAN bus.

Could you please try the steps above and let us know if they provide the expected results?

Thank you,

Irina