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

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

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

2,682 Views
shunyizhang
Contributor IV

shunyizhang_0-1727262689703.pngshunyizhang_1-1727262710602.png

 

0 Kudos
Reply
3 Replies

2,655 Views
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 Kudos
Reply

2,627 Views
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 Kudos
Reply

2,606 Views
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 Kudos
Reply