Clarification on Enhanced RX FIFO Support in S32K312 FlexCAN

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

Clarification on Enhanced RX FIFO Support in S32K312 FlexCAN

131 Views
Yogs
Contributor I

Hi, Here it says it supportsHere it says it supportsAnd here it says only for CAN FDAnd here it says only for CAN FDI am currently working with the S32K312 and would like some clarification regarding FlexCAN Enhanced RX FIFO support.

From my understanding, the S32K312 FlexCAN module supports the Legacy RX FIFO. However, while reviewing the reference manual, I found some sections indicating that Classical CAN supports the Enhanced RX FIFO, whereas other sections seem to suggest that Enhanced RX FIFO is not supported.

Could you please clarify whether the FlexCAN module in the S32K312 supports the Enhanced RX FIFO feature? If it is supported, are there any specific limitations or conditions that apply when using Classical CAN frames?

Any clarification or references to the relevant documentation would be greatly appreciated.

Thank you.

0 Kudos
Reply
3 Replies

101 Views
Yogs
Contributor I

Hi Peter,
Thank you for the response , had a few more queries regarding the same.

  • If the MCR[FDEN] bit is disabled (FlexCAN operating in Classical CAN mode), can the controller still support the Enhanced RX FIFO for receiving Classical CAN messages?
  • If Enhanced RX FIFO is supported in this configuration, is there any reference application, example project, or documentation that demonstrates its usage?
  • Is it possible to configure the Enhanced RX FIFO directly through the MEX configuration tool, or does it require manual configuration in the application code?

    Thank you
0 Kudos
Reply

49 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

Q: If the MCR[FDEN] bit is disabled (FlexCAN operating in Classical CAN mode), can the controller still support the Enhanced RX FIFO for receiving Classical CAN messages?
A: yes, even if FDEN=0 the enhanced RXFIFO can be enabled and FlexCAN accepts just classical CAN messages, either to regular MBs or this enhance RXFIFO, depending on filtering criteria set.

Q: If Enhanced RX FIFO is supported in this configuration, is there any reference application, example project, or documentation that demonstrates its usage?
A: you can refer to below example, it sets FlexCAN with FDEN=1, but you can easily disable it in config tool, if needed, together with payload and bit timing modification.
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test...

Q: Is it possible to configure the Enhanced RX FIFO directly through the MEX configuration tool, or does it require manual configuration in the application code?
A: There is only few configuration option within Config tool
- enable/disable enhanced RXFIFO
- number of standard and extended filter elements
- watermark setting
The filter table must be configured within code. Refer to above demo.

BR, Petr

0 Kudos
Reply

112 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

Table 493 just say that legacy RXFIFO cannot be enabled and used if CAN FD feature (MCR[FDEN]) is enabled in FlexCAN module. Legacy RXFIFO is available on each FlexCAN instance, but it is not able to accept CAN FD messages, just classic CAN messages. That's why enhance RXFIFO was introduced, which can handle both.  

PetrS_1-1781524408183.png

Generally each FlexCAN instance supports CAN FD. Instances differs in number of available MBs and enhanced RXFIFO support.

PetrS_0-1781523991167.png


Enhance RXFIFO is necessary if user want to enable both the RXFIFO and CAN FD options. Enhance RXFIFO is able to store up to 20 messages (both classic CAN and CAN FD). But it is available only on single module (FlexCAN 0) on most S32K3 devices. 

For more info read chapters 73.3.8 Enhanced RX FIFO and 73.3.9 Legacy RX FIFO of the device RM.

BR, Petr

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2381277%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EClarification%20on%20Enhanced%20RX%20FIFO%20Support%20in%20S32K312%20FlexCAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2381277%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EHi%2C%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-right%22%20image-alt%3D%22Here%20it%20says%20it%20supports%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Here%20it%20says%20it%20supports%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F388995i7A39C5EE9926A9AA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-06-15%20150440.png%22%20alt%3D%22Here%20it%20says%20it%20supports%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EHere%20it%20says%20it%20supports%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EHere%20it%20says%20it%20supports%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-right%22%20image-alt%3D%22And%20here%20it%20says%20only%20for%20CAN%20FD%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22And%20here%20it%20says%20only%20for%20CAN%20FD%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F388996iCDA3A0E2E43E9253%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22And%20here%20it%20says%20only%20for%20CAN%20FD%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAnd%20here%20it%20says%20only%20for%20CAN%20FD%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAnd%20here%20it%20says%20only%20for%20CAN%20FD%3C%2FSPAN%3E%3C%2FSPAN%3EI%20am%20currently%20working%20with%20the%20S32K312%20and%20would%20like%20some%20clarification%20regarding%20FlexCAN%20Enhanced%20RX%20FIFO%20support.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EFrom%20my%20understanding%2C%20the%20S32K312%20FlexCAN%20module%20supports%20the%20Legacy%20RX%20FIFO.%20However%2C%20while%20reviewing%20the%20reference%20manual%2C%20I%20found%20some%20sections%20indicating%20that%20Classical%20CAN%20supports%20the%20Enhanced%20RX%20FIFO%2C%20whereas%20other%20sections%20seem%20to%20suggest%20that%20Enhanced%20RX%20FIFO%20is%20not%20supported.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ECould%20you%20please%20clarify%20whether%20the%20FlexCAN%20module%20in%20the%20S32K312%20supports%20the%20Enhanced%20RX%20FIFO%20feature%3F%20If%20it%20is%20supported%2C%20are%20there%20any%20specific%20limitations%20or%20conditions%20that%20apply%20when%20using%20Classical%20CAN%20frames%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EAny%20clarification%20or%20references%20to%20the%20relevant%20documentation%20would%20be%20greatly%20appreciated.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2381641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Clarification%20on%20Enhanced%20RX%20FIFO%20Support%20in%20S32K312%20FlexCAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2381641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EQ%3A%20If%20the%26nbsp%3BMCR%5BFDEN%5D%26nbsp%3Bbit%20is%20disabled%20(FlexCAN%20operating%20in%20Classical%20CAN%20mode)%2C%20can%20the%20controller%20still%20support%20the%26nbsp%3BEnhanced%20RX%20FIFO%26nbsp%3Bfor%20receiving%20Classical%20CAN%20messages%3F%3CBR%20%2F%3EA%3A%20yes%2C%20even%20if%26nbsp%3BFDEN%3D0%20the%20enhanced%20RXFIFO%20can%20be%20enabled%20and%20FlexCAN%20accepts%20just%20classical%20CAN%20messages%2C%20either%20to%20regular%20MBs%20or%20this%20enhance%20RXFIFO%2C%20depending%20on%20filtering%20criteria%20set.%3C%2FP%3E%0A%3CP%3EQ%3A%20If%20Enhanced%20RX%20FIFO%20is%20supported%20in%20this%20configuration%2C%20is%20there%20any%20reference%20application%2C%20example%20project%2C%20or%20documentation%20that%20demonstrates%20its%20usage%3F%3CBR%20%2F%3EA%3A%20you%20can%20refer%20to%20below%20example%2C%20it%20sets%20FlexCAN%20with%20FDEN%3D1%2C%20but%20you%20can%20easily%20disable%20it%20in%20config%20tool%2C%20if%20needed%2C%20together%20with%20payload%20and%20bit%20timing%20modification.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test-S32DS3-4%2Fta-p%2F1536225%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test-S32DS3-4%2Fta-p%2F1536225%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EQ%3A%20Is%20it%20possible%20to%20configure%20the%20Enhanced%20RX%20FIFO%20directly%20through%20the%26nbsp%3BMEX%20configuration%20tool%2C%20or%20does%20it%20require%20manual%20configuration%20in%20the%20application%20code%3F%3CBR%20%2F%3EA%3A%20There%20is%20only%20few%20configuration%20option%20within%20Config%20tool%3CBR%20%2F%3E-%20enable%2Fdisable%20enhanced%20RXFIFO%3CBR%20%2F%3E-%20number%20of%20standard%20and%20extended%20filter%20elements%3CBR%20%2F%3E-%20watermark%20setting%3CBR%20%2F%3EThe%20filter%20table%20must%20be%20configured%20within%20code.%20Refer%20to%20above%20demo.%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2381342%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Clarification%20on%20Enhanced%20RX%20FIFO%20Support%20in%20S32K312%20FlexCAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2381342%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Peter%2C%3CBR%20%2F%3EThank%20you%20for%20the%20response%20%2C%20had%20a%20few%20more%20queries%20regarding%20the%20same.%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3EIf%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EMCR%3CSPAN%20class%3D%22%22%3E%5BFDEN%5D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20bit%20is%20disabled%20(FlexCAN%20operating%20in%20Classical%20CAN%20mode)%2C%20can%20the%20controller%20still%20support%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EEnhanced%20RX%20FIFO%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20for%20receiving%20Classical%20CAN%20messages%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIf%20Enhanced%20RX%20FIFO%20is%20supported%20in%20this%20configuration%2C%20is%20there%20any%20reference%20application%2C%20example%20project%2C%20or%20documentation%20that%20demonstrates%20its%20usage%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIs%20it%20possible%20to%20configure%20the%20Enhanced%20RX%20FIFO%20directly%20through%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EMEX%20configuration%20tool%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%2C%20or%20does%20it%20require%20manual%20configuration%20in%20the%20application%20code%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3EThank%20you%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2381337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Clarification%20on%20Enhanced%20RX%20FIFO%20Support%20in%20S32K312%20FlexCAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2381337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3ETable%20493%20just%20say%20that%20legacy%20RXFIFO%20cannot%20be%20enabled%20and%20used%20if%20CAN%20FD%20feature%20(MCR%5BFDEN%5D)%20is%20enabled%20in%20FlexCAN%20module.%20Legacy%20RXFIFO%20is%20available%20on%20each%20FlexCAN%20instance%2C%20but%20it%20is%20not%20able%20to%20accept%20CAN%20FD%20messages%2C%20just%20classic%20CAN%20messages.%20That's%20why%20enhance%20RXFIFO%20was%20introduced%2C%20which%20can%20handle%20both.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PetrS_1-1781524408183.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_1-1781524408183.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389007iAD91041DDEB0CAB0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PetrS_1-1781524408183.png%22%20alt%3D%22PetrS_1-1781524408183.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EGenerally%20each%20FlexCAN%20instance%20supports%20CAN%20FD.%20Instances%20differs%20in%20number%20of%20available%20MBs%20and%20enhanced%20RXFIFO%20support.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PetrS_0-1781523991167.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PetrS_0-1781523991167.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389006i0DFD525D385770D4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PetrS_0-1781523991167.png%22%20alt%3D%22PetrS_0-1781523991167.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%3EEnhance%20RXFIFO%20is%20necessary%20if%20user%20want%20to%20enable%20both%20the%20RXFIFO%20and%20CAN%20FD%20options.%20Enhance%20RXFIFO%20is%20able%20to%20store%20up%20to%2020%20messages%20(both%20classic%20CAN%20and%20CAN%20FD).%20But%20it%20is%20available%20only%20on%20single%20module%20(FlexCAN%200)%20on%20most%20S32K3%20devices.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20more%20info%20read%20chapters%26nbsp%3B73.3.8%20Enhanced%20RX%20FIFO%20and%26nbsp%3B73.3.9%20Legacy%20RX%20FIFO%20of%20the%20device%20RM.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%2C%20Petr%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E