Can Bus Error

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

Can Bus Error

6,425 Views
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 Kudos
Reply
5 Replies

6,402 Views
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 Kudos
Reply

6,388 Views
Vamsi421
Contributor II

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

 

 

0 Kudos
Reply

6,371 Views
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 Kudos
Reply

6,204 Views
Vamsi421
Contributor II

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

0 Kudos
Reply

6,185 Views
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 Kudos
Reply