How to receive Standard Message ID in CAN-FD ?

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

How to receive Standard Message ID in CAN-FD ?

972件の閲覧回数
dnewbe
Contributor III

Hi dear all CAN expert

 

My code run and receive Extended Message ID in CAN-FD mode. My board have S32K312 MCU.

But I didn't receive Standard Message ID.

 

I did config CAN-FD configuration on MCAL driver (PlatformSDK_S32K3_2207).

The configuration are

Can Rx/Tx Processing Type is POLLING

CanBaudrateTypeSuport is NORAM_CBT

Can Controller BaudRate 500 Kbps and Can FD Controller BaudRate 2 Mbps

CanRxFiFo is CanEnhanceFiFo

CanEnhanceFiFo is MASK_FILTER_SCHEME

Can Type is BASIC

Can ID Message Type is EXTENDED

 

And test code is

rx_info.msg_id_type = FLEXCAN_MSG_ID_EXT;
FlexCAN_Ip_ConfigRxMb(CanController_0, 1, &rx_info, 0x1000);

rx_info.msg_id_type = FLEXCAN_MSG_ID_STD;
FlexCAN_Ip_ConfigRxMb(CanController_0, 2, &rx_info, 0x20);

rx_info.msg_id_type = FLEXCAN_MSG_ID_EXT;
FlexCAN_Ip_ConfigRxMb(CanController_0, 3, &rx_info, 0x3000);

rx_info.msg_id_type = FLEXCAN_MSG_ID_STD;
FlexCAN_Ip_ConfigRxMb(CanController_0, 4, &rx_info, 0x40);

 

I receive is only Extended Message. 

 

I don't know how to config also to receive Standard Message ID type.

 

Thanks.

0 件の賞賛
4 返答(返信)

957件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @dnewbe 

Do you already test defining the Can ID Message Type as MIXED?

VaneB_2-1670971049004.png

 

B.R.

VaneB

0 件の賞賛

953件の閲覧回数
dnewbe
Contributor III

Yes I did test with MIXED but the result is same.

Also I did another configuration STANDARD but configuration too complicate to understand so I can't complete configuration.

At this time I continue trying...

0 件の賞賛

948件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Given the use case you are trying to implement, it seems that MIXED is the configuration you need.

At this moment, you are using EXTENDED configuration, which does not support standard CAN messages, that could be why you are not receiving these specific standard frames.

MIXED should allow you to receive both standard and extended CAN frames. Just as a note, even though the configuration is MIXED, "standard and RECEIVE type will be treated as EXTENDED", as shown in config tools.

0 件の賞賛

942件の閲覧回数
dnewbe
Contributor III

Pls review my test project attached file is same as real project and the result also same.

As your advise I did MIXED setting.

In attached file you find test code in main.c.

 

Thanks

0 件の賞賛