<?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>topic Re: FlexCAN Filtering and Matching in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1950547#M66751</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First of all, can you tell us the part number you are using?&lt;/P&gt;
&lt;P&gt;Regarding your issue of FlexCAN receiver, you can receive all packet no matter what the ID is, pls check if the CAN_MCR[IRMQ] bit is cleared. when the bit is cleared, the mailbox filter is valid.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1725937419709.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298063iE77F4759DA3765F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1725937419709.png" alt="xiangjun_rong_0-1725937419709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 03:06:56 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2024-09-10T03:06:56Z</dc:date>
    <item>
      <title>FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1950405#M66748</link>
      <description>&lt;P&gt;I am having a hard time getting the FlexCAN module to filter out messages that do not match the programmed ID in the mailbox.&lt;/P&gt;&lt;P&gt;In my example I am using extended CAN IDs and the&amp;nbsp;RXMGMASK register as the filter.&lt;/P&gt;&lt;P&gt;I set the following registers for reception:&lt;/P&gt;&lt;P&gt;- RXMGMASK to 0x1FFFFFFF&lt;/P&gt;&lt;P&gt;- MB.ID = CAN_ID_EXT(0x1A5)&lt;/P&gt;&lt;P&gt;- MB.CS[CODE] = 0x4&lt;/P&gt;&lt;P&gt;- MB.CS[IDE] = 1&lt;/P&gt;&lt;P&gt;I am using the Kvaser CAN King software to send messages to the UUT.&lt;/P&gt;&lt;P&gt;I would expect only messages with CAN ID of 0x1A5 to be received, however all CAN messages are received regardless of the ID value.&lt;/P&gt;&lt;P&gt;I have read the matching process section of the reference manual a dozen times now and do not understand what I am missing.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 23:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1950405#M66748</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2024-09-09T23:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1950547#M66751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First of all, can you tell us the part number you are using?&lt;/P&gt;
&lt;P&gt;Regarding your issue of FlexCAN receiver, you can receive all packet no matter what the ID is, pls check if the CAN_MCR[IRMQ] bit is cleared. when the bit is cleared, the mailbox filter is valid.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1725937419709.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298063iE77F4759DA3765F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1725937419709.png" alt="xiangjun_rong_0-1725937419709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 03:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1950547#M66751</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-09-10T03:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1951282#M66755</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;I am using the MKE18F512VLH16 processor.&lt;/P&gt;&lt;P&gt;I verified in the debugger that the CAN_MCR[IRMQ] bit is negated when I am receiving messages.&lt;/P&gt;&lt;P&gt;I just tried using the individual mask registers and set the CAN_MCR[IRMQ] to 1, and that actually worked. I am only using one mailbox to receive messages, so this will work for me.&lt;/P&gt;&lt;P&gt;Outside of negating the CAN_MCR[IRMQ] bit, and setting the CAN_RXMGMASK to 0x1FFF_FFFF, is there any other reason why the filtering wouldn't work? Just don't understand why the global one didn't work and the individual one did. They seem to work the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 16:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1951282#M66755</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2024-09-10T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1951699#M66758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You use&amp;nbsp; a global mask register, but the global mask mechanism does not function, you can receive&amp;nbsp; packet with any IID, am I right?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 01:57:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1951699#M66758</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-09-12T01:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1952285#M66760</link>
      <description>&lt;P&gt;I am using mailbox 0 to receive messages.&lt;/P&gt;&lt;P&gt;I was able to get the filtering to work using the individual mask register (CAN_RXIMR0 = 0x1FFF_FFFF and CAN_MCR[IRMQ] = 1).&lt;/P&gt;&lt;P&gt;I was not able to get the filtering to work using the global mask register (CAN_RXGMGMASK = 0x1FFF_FFFF and CAN_MCR[IRMQ] = 0).&lt;/P&gt;&lt;P&gt;Does the global mask register (RXMGMASK) not work the same as the individual mask register (RXIMRn)? I think I am misunderstanding how the global mask works.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 16:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1952285#M66760</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2024-09-11T16:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Filtering and Matching</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1952880#M66761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Sorry for misunderstanding you.&lt;/P&gt;
&lt;P&gt;Regarding the CANx_RXMGMASK,CANx_RX14MASK and CANx_RX15MASK, the RM says that they are for legacy application support.&lt;/P&gt;
&lt;P&gt;I have checked the original version of FlexCAN,&amp;nbsp; the original version of FlexCAN only have CANx_RXMGMASK,CANx_RX14MASK and CANx_RX15MASK, but does not have CANx_RXIMRx register group.&lt;/P&gt;
&lt;P&gt;So I think it is okay to configure the CANx_RXIMRx register group for each mailbox, the CANx_RXMGMASK,CANx_RX14MASK and CANx_RX15MASK are useless, they are provided for legacy application support.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1726107847407.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298700iAFD56CA036E2E5E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1726107847407.png" alt="xiangjun_rong_0-1726107847407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BTW, the MC56F83xx use the original FlexCAN.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/user-guide/MC56F8300UM.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/user-guide/MC56F8300UM.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 02:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexCAN-Filtering-and-Matching/m-p/1952880#M66761</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-09-12T02:29:24Z</dc:date>
    </item>
  </channel>
</rss>

