<?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>MPC5xxxのトピックRe: How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847889#M12445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mask within a RXFGMASK should be shifted left by 1 bit as you can see in chapter 43.4.17 of the RM&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62646i608D19C613768C37/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so, to have exact match you need to set RXFGMASK = 0x3FF80000 (assuming standard ID is received).&lt;/P&gt;&lt;P&gt;Most probably the driver function does not shift the value properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the RXFGMASK = 0x1FFC0000&amp;nbsp; the MSB of the ID is don't care, that's the reason you received such IDs.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2018 12:13:54 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2018-08-13T12:13:54Z</dc:date>
    <item>
      <title>How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847888#M12444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to receive&amp;nbsp;message with specific ID .For instance 0x000，0x111，0x222 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;The can configuration is as follows：&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62750iE2F5DC66814C47BC/image-size/large?v=v2&amp;amp;px=999" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;The can_fifo_config is as follows:&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62918iC239894277ED6489/image-size/large?v=v2&amp;amp;px=999" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;I send message to my&amp;nbsp;device from ID 0X000 to ID 0X7FF，while the device receives something that is not in my&amp;nbsp;expectation.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;As follows：&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62963i08C6138CF84DB48F/image-size/large?v=v2&amp;amp;px=999" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It seems that the mask highest bit is not in effect.&lt;/P&gt;&lt;P&gt;0 - 400：&lt;/P&gt;&lt;P&gt;0000 0000 0000&lt;/P&gt;&lt;P&gt;0100 0000 0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;44 - 444：&lt;/P&gt;&lt;P&gt;0000 0100 0100&lt;/P&gt;&lt;P&gt;0100 0100 0100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;111 - 511：&lt;/P&gt;&lt;P&gt;0001 0001 0001&lt;/P&gt;&lt;P&gt;0101 0001 0001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of the RX FIFO,it is right that to configure the&amp;nbsp;CAN_RXFGMASK as 0x1fffffff. [0:28]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62598i1DA3BDD9F7FF39EF/image-size/large?v=v2&amp;amp;px=999" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However there are some mistakes in somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I force &lt;SPAN&gt;CAN_RXFGMASK to be configured as 0x3fffffff. It does work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62661i1199A5A247BD4B0C/image-size/large?v=v2&amp;amp;px=999" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62703iCBCABC3530A7BF72/image-size/large?v=v2&amp;amp;px=999" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some mistakes in my knowledge?&amp;nbsp;&lt;/P&gt;&lt;P&gt;where is mistake？Please inform me in detail .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 08:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847888#M12444</guid>
      <dc:creator>1622542013</dc:creator>
      <dc:date>2018-08-13T08:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847889#M12445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mask within a RXFGMASK should be shifted left by 1 bit as you can see in chapter 43.4.17 of the RM&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62646i608D19C613768C37/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so, to have exact match you need to set RXFGMASK = 0x3FF80000 (assuming standard ID is received).&lt;/P&gt;&lt;P&gt;Most probably the driver function does not shift the value properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the RXFGMASK = 0x1FFC0000&amp;nbsp; the MSB of the ID is don't care, that's the reason you received such IDs.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 12:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847889#M12445</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2018-08-13T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847890#M12446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Yes,you are right.&lt;/P&gt;&lt;P&gt;There may be a bug in the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API(settting&amp;nbsp;Rx FIFO global mask) dose not deal with CAN_MCR[IDAM] .&lt;/P&gt;&lt;P&gt;It only checks either&amp;nbsp;standard id or&amp;nbsp;extended id,but it is&amp;nbsp;useless for&amp;nbsp;CAN_RXFGMASK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62677iA395980908A6766B/image-size/large?v=v2&amp;amp;px=999" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And it will clear the bits form 31 to 29. So it is never correct that use the API(FLEXCAN_DRV_SetRxFifoGlobalMask) to configure the&amp;nbsp;&lt;SPAN&gt;CAN_RXFGMASK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62678i83C67199E39DEF76/image-size/large?v=v2&amp;amp;px=999" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62722i1548A5B291AB4028/image-size/large?v=v2&amp;amp;px=999" title="9.png" alt="9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #f8f8f8; font-size: 13px;"&gt;Best regards,gao&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 01:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847890#M12446</guid>
      <dc:creator>1622542013</dc:creator>
      <dc:date>2018-08-14T01:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847891#M12447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Mr. Gao,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;@泽乾 高&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Could you share the code you showed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I just want to know how to use RxFIFO to receive CAN MSG with multiple CAN IDs. I am using the API(status_t FLEXCAN_DRV_ConfigRxMb) to receive CAN MSG now ,but it can only receive the msg which CAN ID was defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Many Thanks~&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847891#M12447</guid>
      <dc:creator>yukunwu</dc:creator>
      <dc:date>2018-09-13T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847892#M12448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can configure the mask as follows：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxMbGlobalMask(instance, FLEXCAN_MSG_ID_STD, 0x0U);&lt;BR /&gt; (void)FLEXCAN_DRV_SetRxIndividualMask(instance, FLEXCAN_MSG_ID_STD, Individual_num, 0x0U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #f8f8f8;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 02:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-correctly-configure-CAN-Rx-Mailboxes-Mask-Register-in/m-p/847892#M12448</guid>
      <dc:creator>1622542013</dc:creator>
      <dc:date>2018-09-25T02:58:21Z</dc:date>
    </item>
  </channel>
</rss>

