<?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: False Positive Acceptance with CAN Rx FIFO? in S32K</title>
    <link>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763475#M2227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes!&amp;nbsp; Looks like you nailed it - the&amp;nbsp;&lt;EM&gt;FLEXCAN_HAL_SetRxFifoGlobalStdMask&lt;/EM&gt;() and&amp;nbsp;&lt;EM&gt;FLEXCAN_HAL_SetRxFifoGlobalExtMask&lt;/EM&gt;() methods under the&amp;nbsp;&lt;EM&gt;FLEXCAN_DRV_SetRxFifoGlobalMask&lt;/EM&gt;() method are not implemented properly (shifting and masking).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great catch.&amp;nbsp;&amp;nbsp;Fixing that solved my issue - thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 19:17:31 GMT</pubDate>
    <dc:creator>gbrowne</dc:creator>
    <dc:date>2018-06-12T19:17:31Z</dc:date>
    <item>
      <title>False Positive Acceptance with CAN Rx FIFO?</title>
      <link>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763473#M2225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of our QA engineers picked up on false positives in the CAN message acceptance today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We set a&amp;nbsp;&lt;EM&gt;FLEXCAN_MSG_ID_STD &lt;/EM&gt;global mask to 0x7FF (i.e. exact match) using&amp;nbsp;&lt;EM&gt;FLEXCAN_DRV_SetRxFifoGlobalMask&lt;/EM&gt;() - I can verify that the value of &lt;EM&gt;CAN0-&amp;gt;RXFGMASK&lt;/EM&gt; is properly set to 0x1FFC0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the filter is set to 0x51C using&amp;nbsp;&lt;EM&gt;FLEXCAN_DRV_ConfigRxFifo&lt;/EM&gt;() with&amp;nbsp;&lt;EM&gt;FLEXCAN_RX_FIFO_ID_FORMAT_A&lt;/EM&gt; format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, messages with a CAN ID of 0x11C are being accepted using&amp;nbsp;&lt;EM&gt;FLEXCAN_DRV_RxFifoBlocking&lt;/EM&gt;().&amp;nbsp; So it looks like only part of the mask is working (potentially)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I may be missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 20:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763473#M2225</guid>
      <dc:creator>gbrowne</dc:creator>
      <dc:date>2018-06-07T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: False Positive Acceptance with CAN Rx FIFO?</title>
      <link>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763474#M2226</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;mask within a RXFGMASK should be shifted left by 1 bit as you can see from Table 53-7&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40540iE2C1722C7D9B0071/image-size/large?v=v2&amp;amp;px=999" role="button" 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.&lt;/P&gt;&lt;P&gt;Most probably the driver function does not shift the value properly.&lt;/P&gt;&lt;P&gt;&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 ID 0x11C too.&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>Tue, 12 Jun 2018 12:12:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763474#M2226</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2018-06-12T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: False Positive Acceptance with CAN Rx FIFO?</title>
      <link>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763475#M2227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes!&amp;nbsp; Looks like you nailed it - the&amp;nbsp;&lt;EM&gt;FLEXCAN_HAL_SetRxFifoGlobalStdMask&lt;/EM&gt;() and&amp;nbsp;&lt;EM&gt;FLEXCAN_HAL_SetRxFifoGlobalExtMask&lt;/EM&gt;() methods under the&amp;nbsp;&lt;EM&gt;FLEXCAN_DRV_SetRxFifoGlobalMask&lt;/EM&gt;() method are not implemented properly (shifting and masking).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great catch.&amp;nbsp;&amp;nbsp;Fixing that solved my issue - thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/False-Positive-Acceptance-with-CAN-Rx-FIFO/m-p/763475#M2227</guid>
      <dc:creator>gbrowne</dc:creator>
      <dc:date>2018-06-12T19:17:31Z</dc:date>
    </item>
  </channel>
</rss>

