<?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 RT Crossover MCUs中的主题 Re: FlexCAN Call Back function for SDK</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062999#M8493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2020 01:10:55 GMT</pubDate>
    <dc:creator>1668834026</dc:creator>
    <dc:date>2020-04-27T01:10:55Z</dc:date>
    <item>
      <title>FlexCAN Call Back function for SDK</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062997#M8491</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 find a problem about FlexCAN Call Back function. I don't understand why Rx status is&amp;nbsp;kStatus_FLEXCAN_RxIdle rather than&amp;nbsp;Rx Message Buffer full. This is the&amp;nbsp;&lt;SPAN&gt;function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt; * @brief FlexCAN Call Back function&lt;BR /&gt; */&lt;BR /&gt;static void flexcan_callback(CAN_Type *base, flexcan_handle_t *handle, status_t status, uint32_t result, void *userData)&lt;BR /&gt;{&lt;BR /&gt; switch (status)&lt;BR /&gt; {&lt;BR /&gt; case kStatus_FLEXCAN_RxIdle:&lt;BR /&gt; if (RX_MESSAGE_BUFFER_NUM == result)&lt;BR /&gt; {&lt;BR /&gt; rxComplete = true;&lt;BR /&gt; }&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;case kStatus_FLEXCAN_TxIdle:&lt;BR /&gt; if (TX_MESSAGE_BUFFER_NUM == result)&lt;BR /&gt; {&lt;BR /&gt; txComplete = true;&lt;BR /&gt; }&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;default:&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 06:12:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062997#M8491</guid>
      <dc:creator>1668834026</dc:creator>
      <dc:date>2020-04-22T06:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Call Back function for SDK</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062998#M8492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;Flex Can works differently than what you might expect from UART for example. In Flex Can there is not a receive buffer full flag or tx buffer full flag that may be a source for an interrupt as there is in UART.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, for Flex Can, you have to wait until there is no activity on the line. This is why the interrupt is generated when the line is idle. As you may see in the code once the line is idle it checks it the full message was received, if yes then it was successful and reception is complete if not then it leaves the if statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also check chapter 44 of the reference manual, for other modes of operation that require the bus to be idle. In addition you may check how to use the CODE for matching and arbitration process in table 44-5.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2020 14:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062998#M8492</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-04-24T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Call Back function for SDK</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062999#M8493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-Call-Back-function-for-SDK/m-p/1062999#M8493</guid>
      <dc:creator>1668834026</dc:creator>
      <dc:date>2020-04-27T01:10:55Z</dc:date>
    </item>
  </channel>
</rss>

