<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S32K中的主题 Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
    <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088597#M7842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;the Accepance mask registers are used to mask incoming ID. There is bit2bit correspondence between received ID, mask and programmed MB ID (or RXFIFO ID filter elements). The mask says if corresponding incoming ID bit is compared with programmed ID bit.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;If mask bit is cleared the incoming ID bit is not compared, it is don’t care. If mask bit is set, then there must be exact match between incoming ID bit and programmed ID bit. To receive a message into a MB/RXFIFO all relevant bits with mask bit set must be equal to programmed one.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;There are following rules for message filtering for different FlexCAN module configuration (assume module with 32 MBs)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;a) When MCR[FEN]=0, no RX FIFO&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[IRMQ]=0: MB0-MB31 use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=1: MB0-MB31 use RXIMR0-RXIMR31&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;b) When MCR[FEN]=1, RX FIFO used&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=0: all RX FIFO ID elements uses RXFGMASK, rest od MBs use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK (only if MB14/15 are not occupied by RXFIFO ID table)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=1: RX FIFO ID elements uses RXIMRx and RXFGMASK depending the CTRL2[RFFN] setting&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;So to receive message into RXFIFO you need to set the I&lt;SPAN&gt;D filter elements and mask registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL); // clear MCR[IRMQ] bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit; "&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0); // set RXFGMASK = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0); // should set&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;RXFGMASK = 0 too&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;FLEXCAN_MSG_ID_EXT/FLEXCAN_MSG_ID_STD just say how the 0 will be shifted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit; "&gt;Thus as&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;RXFGMASK = 0 neither ID bits nor IDE bit of RXFIFO ID elements are compared and so all standard and extended messages are accepted by RXFIFO.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; "&gt;Once reading message from RXFIFO the IDE bit of CS word shows if it was standard or extended message.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; "&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 11:20:44 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2020-05-27T11:20:44Z</dc:date>
    <item>
      <title>FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088586#M7831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can Anybody explain the usage of RxMBs (FlexCAN Mbs), FIFO and Mailboxes regading FlexCAN??&lt;BR /&gt;I am bit confused why we are configuring RxMb with Msg Id?? Can not we receive any message on this RxMb??&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX, &amp;amp;dataInfo, RX_MSG_ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 17:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088586#M7831</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-14T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088587#M7832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please read chapters&amp;nbsp;55.5.3 &lt;EM&gt;Receive process&lt;/EM&gt; and&amp;nbsp;55.5.4 &lt;EM&gt;Matching process&lt;/EM&gt; of the RM to get to know whole receive/matching process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to define MB's ID and mask acceptance register for the matching process;&amp;nbsp;&lt;A href="https://community.nxp.com/thread/528829"&gt;https://community.nxp.com/thread/528829&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can receive all IDs into single MB if you clear mask acceptance register, then incoming ID is don't care.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 07:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088587#M7832</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-15T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088588#M7833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you @&lt;A _jive_internal="true" class="" data-avatarid="1031" data-externalid="" data-online="false" data-presence="null" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;Petr Stancik&lt;/A&gt;&amp;nbsp;for quick reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I clear mask acceptance register?? Is there any API for that ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 08:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088588#M7833</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-15T08:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088589#M7834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxMaskType and depending a masking type use either&amp;nbsp;FLEXCAN_DRV_SetRxMbGlobalMask or&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxIndividualMask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 13:39:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088589#M7834</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-15T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088590#M7835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi Petr,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks for info,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am bit confusing with the filters concept with NXP micro controllers&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0);&lt;BR /&gt;FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, RX_MAILBOX, 0);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;If I set the masks like above snippet&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Is it going to accept only standard frames??&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;FLEXCAN_MSG_ID_STD is this flag decides the standard or exdended frames filtering??&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0);&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, RX_MAILBOX, 0);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; "&gt;Is this going to receive only extended frames??&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Please give one some explanation for filtering&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I want set standard Id 0x08 and extended ID:&amp;nbsp;0x4bc0001 seperately? How can I set subnet mask for those IDs in FIFO mode??&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks in advance&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="background: url(&amp;quot; border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Saidhi reddy Sareddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 11:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088590#M7835</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-20T11:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088591#M7836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLEXCAN_MSG_ID_STD&amp;nbsp;and&amp;nbsp;FLEXCAN_MSG_ID_EXT distinguish how mask will be written in the given mask acceptance register. STD mask is left shifted by 18 bits similarly as the ID set in the regular MB.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By default the IDE bit of incoming&amp;nbsp;frame is checked against the bit programmed in the MB, unless CTRL2[EACEN] is set, so IDE bit can be masked too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To receive mentioned IDs into two MBs you can use following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Set information about the data to be received */&lt;BR /&gt; flexcan_data_info_t dataInfo =&lt;BR /&gt; {&lt;BR /&gt; .data_length = 1U,&lt;BR /&gt; .msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt; .enable_brs = false,&lt;BR /&gt; .fd_enable = false,&lt;BR /&gt; .fd_padding = 0U&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure RX message buffer with&amp;nbsp;STD ID 0x08&amp;nbsp; */&lt;BR /&gt; FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX_1, &amp;amp;dataInfo, 0x08);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dataInfo.msg_id_type&amp;nbsp; =&amp;nbsp;FLEXCAN_MSG_ID_EXT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure RX message buffer with EXT&amp;nbsp;ID &lt;SPAN&gt;0x4bc0001&lt;/SPAN&gt;&amp;nbsp; */&lt;BR /&gt;FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX_2, &amp;amp;dataInfo, 0x4bc0001);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* set individual masking type */&lt;BR /&gt; FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_INDIVIDUAL);&lt;/P&gt;&lt;P&gt;/* set mask affecting&amp;nbsp;RX_MAILBOX_1&amp;nbsp;*/&lt;BR /&gt;FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, RX_MAILBOX_1, 0x7FF);&lt;/P&gt;&lt;P&gt;/* set mask affecting RX_MAILBOX_2&amp;nbsp;*/&lt;BR /&gt; FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, RX_MAILBOX_2, 0x1FFFFFFF);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Start receiving data in RX_MAILBOX_1. */&lt;BR /&gt; FLEXCAN_DRV_Receive(INST_CANCOM1, RX_MAILBOX_1, &amp;amp;recvBuff1);&lt;/P&gt;&lt;P&gt;/* Start receiving data in RX_MAILBOX_2 */&lt;BR /&gt; FLEXCAN_DRV_Receive(INST_CANCOM1, RX_MAILBOX_2, &amp;amp;recvBuff2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use RXFIFO filter table must be defined too. You can refer to below example&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-343091"&gt;https://community.nxp.com/docs/DOC-343091&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 08:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088591#M7836</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-21T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088592#M7837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much @&lt;A _jive_internal="true" class="" data-avatarid="1031" data-externalid="" data-online="false" data-presence="null" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;Petr Stancik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You are the BEST :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I configure the mask during in FIFO mode??&lt;BR /&gt;So I can not use the Id directly need to configure with Masking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 13:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088592#M7837</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-22T13:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088593#M7838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same IDs as before but for RXFIFO ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* ID Filter table, assume 8 elements are set in component inspector */&lt;BR /&gt;flexcan_id_table_t filterTable[8]={};&lt;BR /&gt;uint32_t IDlist[8] = {&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x4bc0001&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t IDtype[8] = {0,1,0,0,0,0,0,0};&lt;/SPAN&gt;&lt;BR /&gt;uint32_t IDmask[8] = {0x7FF,0x1FFFFFFF,&lt;SPAN&gt;0x7FF&lt;/SPAN&gt;,&lt;SPAN&gt;0x7FF&lt;/SPAN&gt;,0x7FF,0x7FF,0x7FF,0x7FF};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* set individual masking type */&lt;BR /&gt; FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_INDIVIDUAL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(id_counter=0;id_counter&amp;lt;8;id_counter++)&lt;BR /&gt; {&lt;BR /&gt; filterTable[id_counter].isRemoteFrame = false;&lt;BR /&gt; filterTable[id_counter].isExtendedFrame = &lt;SPAN&gt;IDtype[id_counter]&lt;/SPAN&gt;;&lt;BR /&gt; filterTable[id_counter].id = IDlist[id_counter] ;&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxIndividualMask(INST_CANCOM1, &lt;SPAN&gt;IDtype[id_counter]&lt;/SPAN&gt;, id_counter, 0xC0000000|IDmask[id_counter]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;BR /&gt; /* Configure RX FIFO ID filter table elements based on filter table defined above*/&lt;BR /&gt; FLEXCAN_DRV_ConfigRxFifo(INST_CANCOM1, FLEXCAN_RX_FIFO_ID_FORMAT_A, filterTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Start receiving data in RX_RXFIFO. */&lt;BR /&gt; FLEXCAN_DRV_RxFifo(INST_CANCOM1,&amp;amp;recvBuff);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 10:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088593#M7838</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-25T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088594#M7839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @&lt;A _jive_internal="true" data-avatarid="1031" data-externalid="" data-online="false" data-presence="null" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;Petr Stancik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you sooo much for your clear information regarding the setting fileters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is only receive either standard or extended CAN frames based fileter using RxFIFO. So I did not set specific IDs in fileter.&lt;/P&gt;&lt;P&gt;I only set Global mask as it shows below.&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0);&lt;/P&gt;&lt;P&gt;But the Application aslo receiving the extended frames. If I will not set any Global mask application not receiving any CAN frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I tried with Extended flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0);&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0x10000000);&lt;/P&gt;&lt;P&gt;This also accepting both standard and extended flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to receive any standard or extended frames using global mask with RXFIFOs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 13:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088594#M7839</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-25T13:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088595#M7840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;the RXFIXO should accept all standard and extended messages regardless of setting id filter table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 08:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088595#M7840</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-26T08:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088596#M7841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI @&lt;A _jive_internal="true" data-avatarid="1031" data-externalid="" data-online="false" data-presence="null" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;Petr Stancik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also got same thing in code. But, I set it&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FLEXCAN_MSG_ID_EXT flag but it also receives the standard frame. I did not understand exatly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is this a bug from NXP SDK??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Because I want to make some difference between standard and extended frames?? Do I need to write extra code for fileter the extended or standard IDS?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;How Can I receive only receive extended CAN frames??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;How can I receive only receive standard frames??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sai&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 09:32:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088596#M7841</guid>
      <dc:creator>saireddy_saredd</dc:creator>
      <dc:date>2020-05-26T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088597#M7842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;the Accepance mask registers are used to mask incoming ID. There is bit2bit correspondence between received ID, mask and programmed MB ID (or RXFIFO ID filter elements). The mask says if corresponding incoming ID bit is compared with programmed ID bit.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;If mask bit is cleared the incoming ID bit is not compared, it is don’t care. If mask bit is set, then there must be exact match between incoming ID bit and programmed ID bit. To receive a message into a MB/RXFIFO all relevant bits with mask bit set must be equal to programmed one.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;There are following rules for message filtering for different FlexCAN module configuration (assume module with 32 MBs)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;a) When MCR[FEN]=0, no RX FIFO&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[IRMQ]=0: MB0-MB31 use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=1: MB0-MB31 use RXIMR0-RXIMR31&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;b) When MCR[FEN]=1, RX FIFO used&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=0: all RX FIFO ID elements uses RXFGMASK, rest od MBs use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK (only if MB14/15 are not occupied by RXFIFO ID table)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp; MCR[&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;IRMQ&lt;/SPAN&gt;]=1: RX FIFO ID elements uses RXIMRx and RXFGMASK depending the CTRL2[RFFN] setting&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;So to receive message into RXFIFO you need to set the I&lt;SPAN&gt;D filter elements and mask registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL); // clear MCR[IRMQ] bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit; "&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_EXT, 0); // set RXFGMASK = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0); // should set&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;RXFGMASK = 0 too&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;FLEXCAN_MSG_ID_EXT/FLEXCAN_MSG_ID_STD just say how the 0 will be shifted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit; "&gt;Thus as&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;RXFGMASK = 0 neither ID bits nor IDE bit of RXFIFO ID elements are compared and so all standard and extended messages are accepted by RXFIFO.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; "&gt;Once reading message from RXFIFO the IDE bit of CS word shows if it was standard or extended message.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; "&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 11:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1088597#M7842</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-05-27T11:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RxMbs, FIFO and MailBox concepts explanation</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1574119#M19631</link>
      <description>&lt;P&gt;Hi Petrs,&lt;/P&gt;&lt;P&gt;I'm using S32E EVB Yeah we can able to&amp;nbsp; FLEXCAN TX but we and not able to FLEXCAN Recieve Rx data.&lt;/P&gt;&lt;P&gt;Could you please send me the simple RX FLEXCAN/RXFIFO Recieve code,it will be great if you can help me on this.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 08:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-RxMbs-FIFO-and-MailBox-concepts-explanation/m-p/1574119#M19631</guid>
      <dc:creator>Sami</dc:creator>
      <dc:date>2022-12-23T08:39:41Z</dc:date>
    </item>
  </channel>
</rss>

