Can Bus Error

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

Can Bus Error

6,429 次查看
Vamsi421
Contributor II

Hi,
Presently I am working on NXPS32k344 Board. In  this board i try to implement can protocol by using can controller0 and micro chip can bus analyzer, while i make transmission i am receiving "ERROR PASSIVE" as shown in the attachments.  

0 项奖励
回复
5 回复数

6,406 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

most probably it is due to inaccurate bit timing setting.
I see you have PE clock running from FIRC, select rather FXOSC or AIPS_PLAT if running from FXOSC.

BR, Petr

0 项奖励
回复

6,392 次查看
Vamsi421
Contributor II

HI @PetrS ,
I changed clock to FXOSC and run my program still it giving same error.

 

 

0 项奖励
回复

6,375 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if a CAN tool is sending a message and stays in error passive with TX error 128, it means opposite site does not ACK this message. So check pin setting and if used CAN transceiver is active. Ideally measure MCU's TX/RX pins and bus signal and check module MCR, ECR, ESR1 registers as well.

BR, Petr

0 项奖励
回复

6,208 次查看
Vamsi421
Contributor II

HI @PetrS ,
My code is going to hard fault while executing the line provided in the below attachment. 

0 项奖励
回复

6,189 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you get fault when access peripheral register it can be caused by missing peripheral clock. So check if peripheral clock is not gated-off.

BR, Petr

0 项奖励
回复