Error Passive State in bus for CAN communication in MPC5643L

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

Error Passive State in bus for CAN communication in MPC5643L

1,001 次查看
anu_mathew
Contributor II

Hi,

I am facing issue with CAN transmission. I am using can_simple_block Simulink example for creating the communication. I am using XPC56XL_257BGA module with XPC56XX EVB. I am connecting DB1 connector to PCAN USB Interface. But I am always getting Error Passive State. I am unable to trouleshoot the error. I have rechecked the jumper settings. Could anyone please help me in resolving the issue. 

Also how to set the baud rate of CAN module?

pastedImage_1.png

pastedImage_2.png

3 回复数

871 次查看
constantinrazva
NXP Employee
NXP Employee

As for setting the baud rate, in this older toolbox you have to manually set the following parameters:

  • Resync jump width
  • Phase segment 1
  • Phase segment 2
  • Propagation segment

Using these and knowing the frequency of the clock, you can calculate the baud rate. Please refer to the MPC5643L reference manual to get more in-depth information about how to calculate for this specific MCU (CAN transceiver actually).

Kind regards,

Razvan.

871 次查看
constantinrazva
NXP Employee
NXP Employee

Hello anu.mathew@ntu.edu.sg‌,

Sorry for the delayed answer - we were in the midst of the latest S32K1xx release. Is this still an issue? Or have you resolved it in the meanwhile?

Kind regards,

Razvan.

871 次查看
anu_mathew
Contributor II

Hi,

Thanks for the response. I have resolved the issue, by setting the baud rate correctly. 

0 项奖励