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
966 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
1 Solution
903 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
8 Replies
935 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
929 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
924 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@David_Estevez

yes, you have to change to CAN0

0 Kudos
918 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
914 Views
Senlent
NXP TechSupport
NXP TechSupport

change it to FLEXCAN_MSG_ID_EXT then try again.

Senlent_0-1684830373945.png

 

0 Kudos
911 Views
David_Estevez
Contributor I

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

David_Estevez_0-1684830970582.png

 

0 Kudos
904 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
896 Views
David_Estevez
Contributor I

Thank you! I got it to work.

0 Kudos