S32K142 CAN not working

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

S32K142 CAN not working

ソリューションへジャンプ
1,012件の閲覧回数
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 解決策
904件の閲覧回数
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 返答(返信)
920件の閲覧回数
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 件の賞賛
返信
905件の閲覧回数
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