S32K142 CAN not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K142 CAN not working

跳至解决方案
1,010 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
902 次查看
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

 

 

 

在原帖中查看解决方案

3 回复数
988 次查看
Senlent
NXP TechSupport
NXP TechSupport
918 次查看
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 项奖励
回复
903 次查看
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