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.
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...
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.