Receive EXT and STD CAN messages

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

Receive EXT and STD CAN messages

Jump to solution
1,599 Views
David_Estevez
Contributor I

Good morning,

I am using a s32k144 for CAN to receive messages with an extended format with the following initialization:

David_Estevez_0-1684769662774.png

But now I want to change that initialization to be able to receive messages in both standard and extended format. How can i do it?

Thanks in advantage!

0 Kudos
Reply
1 Solution
1,536 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@David_Estevez

I sent you a priviate message, you can reference to this project and below is the test result.

Senlent_0-1684834326538.png

 

 

View solution in original post

0 Kudos
Reply
8 Replies
1,568 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@David_Estevez

you just need to enable CAN FD features.

The difference between a CAN 2.0A and a CAN 2.0B message is that CAN 2.0B supports both 11 bit (standard) and 29 bit (extended) identifiers. Standard and extended frames may exist on the same bus, and even have numerically equivalent identifiers. In this case, the standard frame will have the higher priority

0 Kudos
Reply
1,562 Views
David_Estevez
Contributor I

Hello again,

I am using CAN1 which does not allow the use of CAN FD. Would it be possible to receive both messages with this CAN1 or is it necessary to change to CAN0 that does allow CANFD?

0 Kudos
Reply
1,557 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@David_Estevez

yes, you have to change to CAN0

0 Kudos
Reply
1,551 Views
David_Estevez
Contributor I

Hello again,

I have enabled the CANFD function and changed to CAN0 but I still receive only one type of message.

Maybe I have to change something in the initialization?

David_Estevez_0-1684829859955.png

 

0 Kudos
Reply
1,547 Views
Senlent
NXP TechSupport
NXP TechSupport

change it to FLEXCAN_MSG_ID_EXT then try again.

Senlent_0-1684830373945.png

 

0 Kudos
Reply
1,544 Views
David_Estevez
Contributor I

Still not going. Maybe something to change in the processor expert ?

David_Estevez_0-1684830970582.png

 

0 Kudos
Reply
1,537 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@David_Estevez

I sent you a priviate message, you can reference to this project and below is the test result.

Senlent_0-1684834326538.png

 

 

0 Kudos
Reply
1,529 Views
David_Estevez
Contributor I

Thank you! I got it to work.

0 Kudos
Reply