S32K142 CAN not working

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

S32K142 CAN not working

Jump to solution
861 Views
Mohit_Manvar
Contributor III

Hello,

I am using S32K142 eval board for CAN development.

I picked up example code of flexcan_encrypted from SDK.

as per code I need two Eval board but I have only one so I am trying to read CAN frame through VehicleSpy application.

I also have modified code such as it continuously send CAN frames . snap attched below.

Mohit_Manvar_0-1695373001828.pngMohit_Manvar_1-1695373048825.png

also please find configuration:

Mohit_Manvar_2-1695373090938.png

 

 

when I am running the code, first time FLEXCAN_DRV_Send function giving success status and after that it is showing as BUS_BUSY. although first time can frame is sent it is not visible on monitoring software.(checked with SW).

 

please suggest solution.

 

Regards,

Mohit Manvar

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
753 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mohit_Manvar

1.Please make sure you have correctly used the external 12V DC power supply

Senlent_1-1695864171475.png

2.You did not enable CAN FD in the configuration, but enabled CAN FD in your sending code.

Senlent_3-1695864977592.png

 

 

 

View solution in original post

3 Replies
769 Views
Mohit_Manvar
Contributor III

Hello,

the link you shared with me is referring to masking where Masking concept applies to reception related topics. I want to transmit one CAN message from controller to CAN tool (Vehicle SPY). I am referring SDK Example code of flexcan (flexcan_encrypted_s32k142).

 

I tried checking directly controller pin and HAL pin but no message is visible and also no receiption at tool.

 

During debugging session I noticed that when I am trying to send message via FLEXCAN_DRV_Send function first time it is giving success but no output on either pin or tool. when trying to send frame second time it returns busy status.

 

0 Kudos
Reply
754 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Mohit_Manvar

1.Please make sure you have correctly used the external 12V DC power supply

Senlent_1-1695864171475.png

2.You did not enable CAN FD in the configuration, but enabled CAN FD in your sending code.

Senlent_3-1695864977592.png