<?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>i.MX ProcessorsのトピックSCH-29856 FLEXCAN CAN</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SCH-29856-FLEXCAN-CAN/m-p/1501680#M193485</link>
    <description>&lt;P&gt;Hello, I'm testing now the Flexcan on SCH-29856Board(I.MAXRT1021DAG5A), using basic example(flexcan_interrupt_transfer). In this example, I separated two part, send and receive, and it works very well to communicate with each other using same ID. However, I want to take all ID message in receive part. That means I want know about part, which filter specific ID, when the message are received. Which part should I change ? Thank you in advance&lt;/P&gt;&lt;P&gt;/* Set Rx Masking mechanism. */&lt;BR /&gt;FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(rxIdentifier, 0, 0));&lt;/P&gt;&lt;P&gt;/* Setup Rx Message Buffer. */&lt;BR /&gt;mbConfig.format = kFLEXCAN_FrameFormatStandard;&lt;BR /&gt;mbConfig.type = kFLEXCAN_FrameTypeData;&lt;BR /&gt;mbConfig.id = FLEXCAN_ID_STD(rxIdentifier);&lt;BR /&gt;#if (defined(USE_CANFD) &amp;amp;&amp;amp; USE_CANFD)&lt;BR /&gt;FLEXCAN_SetFDRxMbConfig(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, &amp;amp;mbConfig, true);&lt;BR /&gt;#else&lt;BR /&gt;FLEXCAN_SetRxMbConfig(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, &amp;amp;mbConfig, true);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;/* Start receive data through Rx Message Buffer. */&lt;BR /&gt;rxXfer.mbIdx = (uint8_t)RX_MESSAGE_BUFFER_NUM;&lt;BR /&gt;#if (defined(USE_CANFD) &amp;amp;&amp;amp; USE_CANFD)&lt;BR /&gt;rxXfer.framefd = &amp;amp;frame;&lt;BR /&gt;(void)FLEXCAN_TransferFDReceiveNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;rxXfer);&lt;BR /&gt;#else&lt;BR /&gt;rxXfer.frame = &amp;amp;frame;&lt;BR /&gt;(void)FLEXCAN_TransferReceiveNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;rxXfer);&lt;BR /&gt;#endif&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 08:27:52 GMT</pubDate>
    <dc:creator>Dongveloper</dc:creator>
    <dc:date>2022-08-05T08:27:52Z</dc:date>
    <item>
      <title>SCH-29856 FLEXCAN CAN</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SCH-29856-FLEXCAN-CAN/m-p/1501680#M193485</link>
      <description>&lt;P&gt;Hello, I'm testing now the Flexcan on SCH-29856Board(I.MAXRT1021DAG5A), using basic example(flexcan_interrupt_transfer). In this example, I separated two part, send and receive, and it works very well to communicate with each other using same ID. However, I want to take all ID message in receive part. That means I want know about part, which filter specific ID, when the message are received. Which part should I change ? Thank you in advance&lt;/P&gt;&lt;P&gt;/* Set Rx Masking mechanism. */&lt;BR /&gt;FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(rxIdentifier, 0, 0));&lt;/P&gt;&lt;P&gt;/* Setup Rx Message Buffer. */&lt;BR /&gt;mbConfig.format = kFLEXCAN_FrameFormatStandard;&lt;BR /&gt;mbConfig.type = kFLEXCAN_FrameTypeData;&lt;BR /&gt;mbConfig.id = FLEXCAN_ID_STD(rxIdentifier);&lt;BR /&gt;#if (defined(USE_CANFD) &amp;amp;&amp;amp; USE_CANFD)&lt;BR /&gt;FLEXCAN_SetFDRxMbConfig(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, &amp;amp;mbConfig, true);&lt;BR /&gt;#else&lt;BR /&gt;FLEXCAN_SetRxMbConfig(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, &amp;amp;mbConfig, true);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;/* Start receive data through Rx Message Buffer. */&lt;BR /&gt;rxXfer.mbIdx = (uint8_t)RX_MESSAGE_BUFFER_NUM;&lt;BR /&gt;#if (defined(USE_CANFD) &amp;amp;&amp;amp; USE_CANFD)&lt;BR /&gt;rxXfer.framefd = &amp;amp;frame;&lt;BR /&gt;(void)FLEXCAN_TransferFDReceiveNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;rxXfer);&lt;BR /&gt;#else&lt;BR /&gt;rxXfer.frame = &amp;amp;frame;&lt;BR /&gt;(void)FLEXCAN_TransferReceiveNonBlocking(EXAMPLE_CAN, &amp;amp;flexcanHandle, &amp;amp;rxXfer);&lt;BR /&gt;#endif&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SCH-29856-FLEXCAN-CAN/m-p/1501680#M193485</guid>
      <dc:creator>Dongveloper</dc:creator>
      <dc:date>2022-08-05T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: SCH-29856 FLEXCAN CAN</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SCH-29856-FLEXCAN-CAN/m-p/1503051#M193609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203587"&gt;@Dongveloper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you want to&lt;SPAN&gt;&amp;nbsp;take all ID message in receive part.&amp;nbsp;Just don't configure the Filter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;So, in your code, modify this code :&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/* Set Rx Masking mechanism. */
FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(rxIdentifier, 0, 0));&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, 0x0);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;As, the original code will configure the filter to just receive your&amp;nbsp;rxIdentifier ID.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The reason is related to this register:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1660028986435.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189603i6C32433743713E46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1660028986435.png" alt="kerryzhou_0-1660028986435.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kerryzhou_0-1660028986435.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So you just need to configure the filter to 0, filter is not care.&lt;/P&gt;
&lt;P&gt;You can test it on your side.&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 07:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SCH-29856-FLEXCAN-CAN/m-p/1503051#M193609</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2022-08-09T07:10:45Z</dc:date>
    </item>
  </channel>
</rss>

