S32K314 How to initialize the can module to support both standard and extended frame reception

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

S32K314 How to initialize the can module to support both standard and extended frame reception

2,697 次查看
shunyizhang
Contributor IV

shunyizhang_0-1727262689703.pngshunyizhang_1-1727262710602.png

 

0 项奖励
回复
3 回复数

2,670 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @shunyizhang,

You can configure CanHardwareObject to receive MIXED. Unfortunately, "Mixed" and "Extended" are implemented with the same behavior, as it's a deviation noted in CAN UM: S32K358 FlexCAN Receive Standard and Extended IDs - NXP Community.

This CS bit should include the IDE bit.

Julin_AragnM_1-1727281205598.png

Best regards,
Julián

 

0 项奖励
回复

2,642 次查看
shunyizhang
Contributor IV

I am very sorry that I can only enable one can channel of S32K314 at present, and the extended frame and standard frame of this can channel can receive normally at the same time. However, when I disable the other three CAN channels and the three CAN channels only receive extended frames initially, the one that can normally receive extended frames and extended frames before can still receive and send normally. However, the following three channels can can not receive normally, and the sending is normal. I don't know if there is a problem with the ID configuration of my email. The attachment is my code, please help me review the ID of my email, thank you ~

0 项奖励
回复

2,621 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @shunyizhang,

Sorry for the misunderstanding, but I'm not sure I get your issue completely. Are you unable to receive frames after deinitializing and initializing the other 3 can interfaces? 

If possible, could you share a project where this issue can be seen? This is in order to test this on my side. 

Other than that, on the surface, there is nothing out of ordinary in your configuration. Could you confirm if these CAN interfaces (0, 1, 2, 3) all work individually? 

Best regards,
Julián

0 项奖励
回复