<?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 RXFIFO and Gobal Mask Filter Behaviour Incorrect? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010782#M149705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it work correct if you only enable individual mask or FIFO global mask by itself? Not both at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2020 23:40:28 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2020-01-30T23:40:28Z</dc:date>
    <item>
      <title>FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010781#M149704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have included below snippet of initialization code used with FLEXCAN on the MXRT1064-EVK board with MCUXpresso IDE. We have 19 filters, so there should be 12 filters (0-11) that can be individually masked, and the remaining 7 filters should be covered by the global mask. The intent is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11 bit IDs should be an exact match.&lt;/P&gt;&lt;P&gt;The next 8 29 bit IDs should be an exact PGN match&lt;/P&gt;&lt;P&gt;The remaining 29 bit IDs should only be an MSB match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In accordance with 43.9.20 Rx Individual Mask Registers (FLEXCANx_RXIMRn) in IMXRT1064RM v.,,....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rx FIFO ID Filter Table Element, refer to Rx FIFO Global Mask Register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So mask should take the format:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FLEXCANMask.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100015iA9CF9C1C0EED8989/image-size/large?v=v2&amp;amp;px=999" role="button" title="FLEXCANMask.png" alt="FLEXCANMask.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What has been found is that&amp;nbsp;using these filters in the&amp;nbsp;code removes any filtering&amp;nbsp;on the IDs so that all IDs are received and stored.&lt;/P&gt;&lt;P&gt;If the masks used are all set to 0x00FFFF00, then we get partial filtering. Some IDs are received correctly, others can be received correctly or in parts, others not at all. Why does the masking not follow what is documented? Has some setting been missed? Code initialization below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void CAN_HAL_Init(void)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;flexcan_config_t flexcanConfig;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;flexcan_rx_fifo_config_t fifoconfig;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Create filter table, exact PGNs for parsed 11 bit and TP PGNs, partial for remaining due to limited filter space.&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;uint32_t filterTable[] =&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(0x10C, 0, 1),&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // -&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(0x28C, 0, 1),&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(0x7E0, 0, 1), &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00010000, 0, 0),&amp;nbsp;// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00DC4A00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EA4A00, 0, 0),// | - Masked by individual filters&amp;nbsp;0 - 11&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EAFF00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EB4A00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EBFF00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EC4A00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00ECFF00, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00E00000, 0, 0),// -&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EE0000, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00EF0000, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00F00000, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00FC0000, 0, 0),// | - Masked by global filter&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00FD0000, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00FE0000, 0, 0),// |&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(0x00FF0000, 0, 0),// -&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create mask table.&lt;BR /&gt; // Match exact PGNs for 11 bit.&lt;BR /&gt; // Match PGN value for TP PGNs that apply to the unit.&lt;BR /&gt; // Match partial upper byte of PGN for other parsed values.&lt;BR /&gt; // See 43.9.13 Control 2 Register (FLEXCANx_CTRL2) for details on which filters are covered&lt;BR /&gt; // by which masks.&lt;BR /&gt; uint32_t maskTable[] =&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(0x7FF, 0, 1),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(0x7FF, 0, 1),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(0x7FF, 0, 1),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A(0xFFFF00, 0, 0),&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Clock setting for FLEXCAN*/&lt;BR /&gt; CLOCK_SetMux(kCLOCK_CanMux, FLEXCAN_CLOCK_SOURCE_SELECT);&lt;BR /&gt; CLOCK_SetDiv(kCLOCK_CanDiv, FLEXCAN_CLOCK_SOURCE_DIVIDER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Get FlexCAN module default Configuration. */&lt;BR /&gt; /*&lt;BR /&gt; * flexcanConfig.clkSrc = kFLEXCAN_ClkSrcOsc;&lt;BR /&gt; * flexcanConfig.baudRate = 1000000U;&lt;BR /&gt; * flexcanConfig.baudRateFD = 2000000U;&lt;BR /&gt; * flexcanConfig.maxMbNum = 16;&lt;BR /&gt; * flexcanConfig.enableLoopBack = false;&lt;BR /&gt; * flexcanConfig.enableSelfWakeup = false;&lt;BR /&gt; * flexcanConfig.enableIndividMask = false;&lt;BR /&gt; * flexcanConfig.enableDoze = false;&lt;BR /&gt; * flexcanConfig.timingConfig = timingConfig;&lt;BR /&gt; */&lt;BR /&gt; FLEXCAN_GetDefaultConfig(&amp;amp;flexcanConfig);&lt;BR /&gt; flexcanConfig.baudRate = 250000;&lt;BR /&gt; flexcanConfig.maxMbNum = 64;&lt;BR /&gt; flexcanConfig.enableIndividMask = true;&lt;BR /&gt; flexcanConfig.disableSelfReception = true;&lt;BR /&gt; FLEXCAN_Init(EXAMPLE_CAN, &amp;amp;flexcanConfig, EXAMPLE_CAN_CLK_FREQ);&lt;/P&gt;&lt;P&gt;FLEXCAN_Enable(EXAMPLE_CAN, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Create FlexCAN handle structure and set call back function. */&lt;BR /&gt; FLEXCAN_TransferCreateHandle(EXAMPLE_CAN, &amp;amp;flexcanHandle, flexcan_callback, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Setup Rx Message Buffer. */&lt;BR /&gt; fifoconfig.idFilterNum = sizeof(filterTable) / sizeof(filterTable[0u]);&lt;BR /&gt; fifoconfig.idFilterType = kFLEXCAN_RxFifoFilterTypeA; // Need to have a filter type defined&lt;BR /&gt; fifoconfig.idFilterTable = filterTable;&lt;BR /&gt; fifoconfig.priority = kFLEXCAN_RxFifoPrioHigh;&lt;/P&gt;&lt;P&gt;FLEXCAN_SetRxFifoConfig(EXAMPLE_CAN, &amp;amp;fifoconfig, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Write masks for filters&lt;BR /&gt; for(uint32_t u32Loop = 0u; u32Loop &amp;lt; (sizeof(maskTable)/4); u32Loop++)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_SetRxIndividualMask(EXAMPLE_CAN, u32Loop, maskTable[u32Loop]);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLEXCAN_SetRxFifoGlobalMask(EXAMPLE_CAN,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(0xFF0000, 0, 0));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Setup Tx Message Buffers.&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for(uint8_t u8Loop = TX_MESSAGE_BUFFER_MIN; u8Loop &amp;lt; TX_MESSAGE_BUFFER_MAX; u8Loop++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_SetTxMbConfig(EXAMPLE_CAN, u8Loop, true);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xfer.frame = &amp;amp;frame;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_TransferReceiveFifoNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;xfer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010781#M149704</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-01-28T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010782#M149705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it work correct if you only enable individual mask or FIFO global mask by itself? Not both at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 23:40:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010782#M149705</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-01-30T23:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010783#M149706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not configure the FIFO global mask:&lt;/P&gt;&lt;P&gt;The 11 bit PGNs are no longer processed, unless I send the following:&lt;/P&gt;&lt;P&gt;0x100, 0x200, 0x400, 0x500, 0x600&lt;/P&gt;&lt;P&gt;Which I have not configured - this makes no sense to me.&lt;/P&gt;&lt;P&gt;I can receive all PGNs that are covered by the individual mask and the masking appears to cover the correct part of the PGN (I can change the SA etc. and still receive the message as it should) - exactly what I required and as expected.&lt;/P&gt;&lt;P&gt;The remaining PGNs require exact matches, since there is no masking on the incoming data - this is not acceptable, but is as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just configure the FIFO global mask, it is as if there is no filtering again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: For this test I have not changed the values of the filters or masks, I just commented them out / added them in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 10:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010783#M149706</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-01-31T10:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010784#M149707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone else seen similar issues?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010784#M149707</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-02-05T09:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010785#M149708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for the late reply. We have been under a big workload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to my understanding you are trying to filter according to maskTable in your code, but when you set individual masks to 0xFFFF00 and global to 0xFF0000 you get Some IDs are received correctly and others that do not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please specify in which circumstances and which IDs do not work as they should after you enable the filters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, I did not get your latest reply, you mentioned:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;I can receive all PGNs that are covered by the individual mask and the masking appears to cover the correct part of the PGN (I can change the SA etc. and still receive the message as it should) - exactly what I required and as expected.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You mean individual masks work as they should and the issues begin when you enable FIFO global mask?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any update or additional information please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 16:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010785#M149708</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-02-11T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010786#M149709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;No problem, I gather things must be hectic at the moment!&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Could you please specify in which circumstances and which IDs do not work as they should after you enable the filters?&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Using the init code as per my original question appears to have no filtering effect. Whatever I send on the CAN bus gets processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;You mean individual masks work as they should and the issues begin when you enable FIFO global mask?&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct. Individual masks work perfectly when FIFO global mask is disabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010786#M149709</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-02-12T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010787#M149710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;Christopher Evans,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are also started with flexCAN Rx fifo implementaion on i.Mx RT board, could you please share the link of document which you quoted in "FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?" query. "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In accordance with 43.9.20 Rx Individual Mask Registers (FLEXCANx_RXIMRn)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to receive multiple CAN ID, we are unable to receive the multiple CAN IDs, we need to have more calrity on the mask/filter settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will help us to understand the Rx FIFO and its masks/filter details.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 08:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010787#M149710</guid>
      <dc:creator>ram_ald</dc:creator>
      <dc:date>2020-02-18T08:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010788#M149711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ramanathan,&lt;/P&gt;&lt;P&gt;That comes from the iMXRT1064&amp;nbsp;Processor Reference Manual Rev 0.1, which was what we were working with when we started development. It should be on the product page somewhere on NXPs website.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 17:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010788#M149711</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-02-18T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010789#M149712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for the late reply. I have been checking this issue with my &lt;STRONG&gt;MIMXRT1064-EVK&lt;/STRONG&gt; but using &lt;STRONG&gt;Mailbox Global Mask&lt;/STRONG&gt; and analyzing the behavior when using&lt;STRONG&gt; Individual filters&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results were that when using &lt;STRONG&gt;Individual mask&lt;/STRONG&gt; and &lt;STRONG&gt;Global mask&lt;/STRONG&gt; at the same time, &lt;STRONG&gt;Global mask is ignored&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I found the following statement in &lt;A href="https://www.nxp.com/webapp/Download?colCode=IMXRT1064RM"&gt;Reference Manual&lt;/A&gt;.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;FlexCAN also supports an alternate masking scheme with only four mask registers (RXFGMASK, RXMGMASK, RX14MASK, and RX15MASK) for backwards compatibility with legacy applications. This alternate masking scheme is enabled when the IRMQ bit in the MCR register is negated.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As it is mentioned these four mask registers are not enabled when the Individual Rx Masking is enabled. Sorry for the inconvenience this may cause you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this information is useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010789#M149712</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-02-19T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010790#M149713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for taking the time to investigate. Is this a silicon, driver or documentation issue in that case? This does not fit the description of the FLEXCANx_CTRL2 register operation, which is described in Table 44-22, page 2622 of the reference manual.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 09:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010790#M149713</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-02-20T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010791#M149714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for sharing manual details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in your code, last argument for &lt;SPAN&gt;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A&amp;nbsp;&lt;/SPAN&gt;supposed to be zero (ide) for the standard filter as per the manual page# 2570 (below Table 44-12). Please check for it. We worked out to receive multiple CAN ids using FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A where we passed canid, rtr=0 &amp;amp; ide=0 arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked fine. We have not configured any maskings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for your kind information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 12:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010791#M149714</guid>
      <dc:creator>ram_ald</dc:creator>
      <dc:date>2020-02-20T12:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010792#M149715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Global filters worked correct when I was not using Individual Masks. The fact that they cannot be used together is a driver limitation. Sorry for the inconveniences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 15:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010792#M149715</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-02-25T15:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXCAN RXFIFO and Gobal Mask Filter Behaviour Incorrect?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010793#M149716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution was to invert the IDE bit, as suggested by Ramanathan SG (many thanks for spotting this one), so:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(PGN_xxxxx7E0, 0, 1), 
FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(PGN_xx0100xx &amp;amp; PGN_FILTER_MASK, 0, 0),&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;have their IDE bits inverted to become:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;FLEXCAN_RX_FIFO_STD_FILTER_TYPE_A(PGN_xxxxx7E0, 0, 0), 
FLEXCAN_RX_FIFO_EXT_FILTER_TYPE_A(PGN_xx0100xx &amp;amp; PGN_FILTER_MASK, 0, 1),&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This also applies the FIFO masking it seems so the STD mask:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(STD_ID_MASK, 0, 1),&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;becomes&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A(STD_ID_MASK, 0, 0),&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I have left the IDE for the extended mask as 1.&lt;/P&gt;&lt;P&gt;Finally, the global mask was configured incorrectly. It was using the&amp;nbsp;FLEXCAN_RX_FIFO_STD_MASK_TYPE_A macro and should have been using the&amp;nbsp;FLEXCAN_RX_FIFO_EXT_MASK_TYPE_A macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:41:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXCAN-RXFIFO-and-Gobal-Mask-Filter-Behaviour-Incorrect/m-p/1010793#M149716</guid>
      <dc:creator>chris_evans</dc:creator>
      <dc:date>2020-02-26T14:41:44Z</dc:date>
    </item>
  </channel>
</rss>

