<?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: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1614358#M23164</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195267"&gt;@ChenBowen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you tell me which MCU you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 21:56:18 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2023-03-13T21:56:18Z</dc:date>
    <item>
      <title>SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1614273#M23163</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am trying to learn the SDK. I have some questions about the Flexcan module.&lt;/P&gt;&lt;P&gt;Typically without SDK, I poll the CAN&amp;nbsp; receive flag to receive a masage, at last write 1 to that bit to clear the flag&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;if(CAN_1.IFLAG1.B.BUF6I == 1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CAN_1.IFLAG1.B.BUF6I= 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;When using SDK,&amp;nbsp; do I need to poll the flag and clear it ?&amp;nbsp; It seems that flag clearing is done by api function&amp;nbsp; Flexcan_Receive() , is that right?&lt;/P&gt;&lt;P&gt;How to configure a CAN receive interrupt ?&amp;nbsp; Do you have a&amp;nbsp; example project?&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&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>Mon, 13 Mar 2023 18:58:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1614273#M23163</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-03-13T18:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1614358#M23164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195267"&gt;@ChenBowen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you tell me which MCU you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 21:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1614358#M23164</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-03-13T21:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1615006#M23165</link>
      <description>&lt;P&gt;MPC5744P&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1615006#M23165</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-03-14T13:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1615620#M23173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;within SDK the driver itself is using MB interrupt and clear MB flag in it, moreover update internal driver variable. You can check transfer status using FLEXCAN_DRV_GetTransferStatus function or install interrupt callback.&lt;BR /&gt;There are 2 demo SDK examples within S32DS you can refer to.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_1-1678875363207.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/214677i15BE91F8E358202E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_1-1678875363207.png" alt="PetrS_1-1678875363207.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 10:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1615620#M23173</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-03-15T10:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1617010#M23208</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you for your replay !&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I still have some doubt.&amp;nbsp; I discover that, once intall Can_callback function, first I must call Flexcan_Receive function to enable the rx interrupt.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; My question is , once install the CAN callback function, will it generate interrupt every time&lt;/P&gt;&lt;P&gt;a msg is transmited? If so, How to disable the tx interrupt?&amp;nbsp; And the same question for error callback function, do I need to enable interrupt?&amp;nbsp; &amp;nbsp;Or how can I disable the some err interrupt except the bus off&amp;nbsp;&lt;/P&gt;&lt;P&gt;condition as I only need to focus on the bus off state .&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;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:23:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1617010#M23208</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-03-16T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: SDK Flexcan module, How to use the api function to receive a CAN frame?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1617628#M23217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;SDK driver is written that way, means enabling MB interrupt within Send/Receive function, so MB interrupt is always called, where internal driver variables are updated, callback called (if installed) and finally disable MB interrupt again. There is no option to disable MB interrupt, unless driver is modified, which is not recommended.&lt;/P&gt;
&lt;P&gt;Error interrupts are enabled within&amp;nbsp;FLEXCAN_DRV_InstallErrorCallback, so if you want to call it only for bus off interrupt, try to modify this function to enable mask bit for bus off only. But keep in mind again, driver modification is not recommended.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 12:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SDK-Flexcan-module-How-to-use-the-api-function-to-receive-a-CAN/m-p/1617628#M23217</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-03-17T12:14:00Z</dc:date>
    </item>
  </channel>
</rss>

