CAN s32k358

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

CAN s32k358

1,052 Views
AchrafOukheir
Contributor III

Hello,

I know there is no S32K358 CAN example available, except for a loopback example. When I enable the pins, I encounter many errors.

So, I decided to create my own example from scratch. I have attached the project here. Could someone help me get it working? I successfully created a similar example for the S32K344, which works fine. However, the same approach doesn’t work for the S32K358. I am using the HVBMS 800V evaluation board, while the S32K344 was used with the HVBMS 400V.

It’s very strange because it’s the same example. I used the same configuration, although the pins are different, but nothing appears in our Peak CAN viewer. I set a breakpoint in my CanIf_RxIndication function and I see some real data being received, but nothing in the TX. I did some debugging, but nothing is clear.

Thank you.

0 Kudos
Reply
1 Reply

1,026 Views
PetrS
NXP TechSupport
NXP TechSupport
Hi,
 
if module is able to receive a message but not successfully send, it can point to CAN bit timing issue.
Try to check module MCR/ECR/ESR1 registers for any error detected. Also it could be fine you measure transceiver TX/RX and CAN lines to know a real behavior.
What I can recommend more is to not using FIRC and CAN PE clock. Select different one not using FIRC and recalculate CAN bit timing.
 
BR, Petr
0 Kudos
Reply