S32K312-Q172 CAN transmission failed MBDT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K312-Q172 CAN transmission failed MBDT

跳至解决方案
356 次查看
SuperBeginner
Contributor IV

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 项奖励
回复
1 解答
305 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hello @SuperBeginner 

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

在原帖中查看解决方案

1 回复
306 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hello @SuperBeginner 

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