S32k358 multicore CAN RX

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

S32k358 multicore CAN RX

Jump to solution
780 Views
nirmal_masilamani
Contributor IV

Hello team,

I am using s32k358 multicore, i am trying to establish CAN communiation in core 2

I am facing issue with CAN RX, When i try to transmit data from pcan, i am getting bus passive fault in pcan, i am not receiving any frame in s32k358 rxfifo. CAN ID added rx filter.

But TX working without any issue.

Same code working in single core , core 0 both tx and rx

 

 

Tags (3)
0 Kudos
Reply
1 Solution
743 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

just wanted to reply that due to seeing bus passive fault in PCAN, most probably this will be due to insufficient CAN bit timing setting, mainly FIRC usage.

FIRC should not be used as the CAN protocol clock because it is an internal RC oscillator with relatively poor accuracy and higher frequency drift compared to crystal‑based sources. CAN communication requires a highly stable and precise clock to maintain tight bit‑timing tolerances; otherwise, nodes may lose synchronization, leading to increased errors, bus faults, or communication failures.
 
BR, Petr

View solution in original post

0 Kudos
Reply
3 Replies
751 Views
nirmal_masilamani
Contributor IV

Hello team,

After changing clock from FIRC to FXOSC, CAN communication working.

But can you please explain why we need FXOSC for CAN ?

Tags (3)
0 Kudos
Reply
744 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

just wanted to reply that due to seeing bus passive fault in PCAN, most probably this will be due to insufficient CAN bit timing setting, mainly FIRC usage.

FIRC should not be used as the CAN protocol clock because it is an internal RC oscillator with relatively poor accuracy and higher frequency drift compared to crystal‑based sources. CAN communication requires a highly stable and precise clock to maintain tight bit‑timing tolerances; otherwise, nodes may lose synchronization, leading to increased errors, bus faults, or communication failures.
 
BR, Petr
0 Kudos
Reply
739 Views
nirmal_masilamani
Contributor IV

Hello @PetrS ,

Thank you for your reply.

After changing clock to FXOSC, CAN working.

Tags (3)
0 Kudos
Reply