<?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 KV46 FlexCAN Individual Mailbox Masking in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV46-FlexCAN-Individual-Mailbox-Masking/m-p/1028640#M56436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been using the KV46 on a design and I can't seem to get individual masking working for both CAN0 &amp;amp; CAN1. When I write those bits I enter/exit freeze mode. I set the global CAN filter to 0. When I send the CAN messages that the system will see They always received into MB 0.&amp;nbsp; The only way I can get them to be received into individual mailboxes based on ID is to clear the individual IRMQ bit in the MCR and set the global mask to&amp;nbsp; 0x3FFFFFFF. Is there something else that needs to be done to enable individual mailbox Mask IDs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2020 15:02:01 GMT</pubDate>
    <dc:creator>bitjockey</dc:creator>
    <dc:date>2020-01-31T15:02:01Z</dc:date>
    <item>
      <title>KV46 FlexCAN Individual Mailbox Masking</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV46-FlexCAN-Individual-Mailbox-Masking/m-p/1028640#M56436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been using the KV46 on a design and I can't seem to get individual masking working for both CAN0 &amp;amp; CAN1. When I write those bits I enter/exit freeze mode. I set the global CAN filter to 0. When I send the CAN messages that the system will see They always received into MB 0.&amp;nbsp; The only way I can get them to be received into individual mailboxes based on ID is to clear the individual IRMQ bit in the MCR and set the global mask to&amp;nbsp; 0x3FFFFFFF. Is there something else that needs to be done to enable individual mailbox Mask IDs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 15:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV46-FlexCAN-Individual-Mailbox-Masking/m-p/1028640#M56436</guid>
      <dc:creator>bitjockey</dc:creator>
      <dc:date>2020-01-31T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: KV46 FlexCAN Individual Mailbox Masking</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV46-FlexCAN-Individual-Mailbox-Masking/m-p/1028641#M56437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to enable the MCR.IRMQ bit to enable the Individual Mask.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/101664iA6B299E443EFCF62/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/101693i597473D00ECD51A2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SDK,&amp;nbsp;the example flexcan_loopback, the FLEXCAN_GetDefaultConfig saves the configuration values in the structure, you need to change it to flexcanConfig.enableIndividMask = true and after that call the next API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FLEXCAN_SetRxIndividualMask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CAN_Type &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;base&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; uint8_t maskIdx&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; uint32_t mask&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:36:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV46-FlexCAN-Individual-Mailbox-Masking/m-p/1028641#M56437</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-02T14:36:17Z</dc:date>
    </item>
  </channel>
</rss>

