Can Bus Error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can Bus Error

6,826件の閲覧回数
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,803件の閲覧回数
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,789件の閲覧回数
Vamsi421
Contributor II

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

 

 

0 件の賞賛
返信

6,772件の閲覧回数
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,605件の閲覧回数
Vamsi421
Contributor II

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

0 件の賞賛
返信

6,586件の閲覧回数
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 件の賞賛
返信