<?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 interrupt mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785363#M2522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;FLEXCAN_DRV_Init install the handlers for the FLEXCAN MBs if you will replace the handlers with your ones the driver will not work anymore. you can use the&amp;nbsp;FLEXCAN_DRV_InstallEventCallback API to signal the handler interruption for diffrent events like send and receive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:38:00 GMT</pubDate>
    <dc:creator>alexandrunan</dc:creator>
    <dc:date>2018-08-14T14:38:00Z</dc:date>
    <item>
      <title>Flexcan interrupt mode</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785362#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP devs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using S32K144 to make a OBD product, I need to use the interrupt mode of flexcan, but I cannot find the sample code to use the SDK api.&lt;/P&gt;&lt;P&gt;Below code is what I did in my project to initialize the flexcan:&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/62675iAAA815DA6D9B29A6/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;After the initialization, when I send a frame, the callback function is called,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62721iA5100254F8BE5BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the code is always print the log, I think I need to clear the send interrupt flag int he callback function, but Id don't know how to do it.&lt;/P&gt;&lt;P&gt;Where I can find the way to do the interrupt mode with flexcan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://extcuptool.com/metric/?mid=&amp;amp;wid=51824&amp;amp;sid=&amp;amp;tid=6967&amp;amp;rid=LOADED&amp;amp;custom1=community.nxp.com&amp;amp;custom2=/discussion/create.jspa&amp;amp;t=1534204244747" style="width: 0; height: 0; display: none; visibility: hidden;" /&gt;&lt;IMG src="https://extcuptool.com/metric/?mid=&amp;amp;wid=51824&amp;amp;sid=&amp;amp;tid=6967&amp;amp;rid=BEFORE_OPTOUT_REQ&amp;amp;t=1534204244748" style="width: 0; height: 0; display: none; visibility: hidden;" /&gt;&lt;IMG src="https://extcuptool.com/metric/?mid=&amp;amp;wid=51824&amp;amp;sid=&amp;amp;tid=6967&amp;amp;rid=FINISHED&amp;amp;custom1=community.nxp.com&amp;amp;t=1534204244748" style="width: 0; height: 0; display: none; visibility: hidden;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 23:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785362#M2521</guid>
      <dc:creator>jay_zhang</dc:creator>
      <dc:date>2018-08-13T23:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan interrupt mode</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785363#M2522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;FLEXCAN_DRV_Init install the handlers for the FLEXCAN MBs if you will replace the handlers with your ones the driver will not work anymore. you can use the&amp;nbsp;FLEXCAN_DRV_InstallEventCallback API to signal the handler interruption for diffrent events like send and receive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785363#M2522</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-08-14T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan interrupt mode</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785364#M2523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I tried with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FLEXCAN_DRV_InstallEventCallback, it works when I send a can frame, &lt;STRONG&gt;but I cannot get event callback when receiving a can frame before I call FLEXCAN_DRV_Receive function.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So in my mindset, I want to get a receive event when I receive a frame then I can use the receive API to read the frame data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Can you explain this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 00:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785364#M2523</guid>
      <dc:creator>jay_zhang</dc:creator>
      <dc:date>2018-08-15T00:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan interrupt mode</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785365#M2524</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;You need to call the&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold; font-size: 14px;"&gt;FLEXCAN_DRV_Receive&lt;/STRONG&gt; before seeing the event of callback receive when you see the event of rx complete the message should already be moved in your buffer, because the function will arm the interrupts flags and the callback event signaling will clear the interrupt flag. And if you wish to receive again another message you need to call again the&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold; font-size: 14px;"&gt;FLEXCAN_DRV_Receive&lt;/STRONG&gt; that will rearm the interrupt for a new complete event.&lt;/P&gt;&lt;P&gt;callback function()&lt;/P&gt;&lt;P&gt;{ if(event == RX_COMPLETE)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLEXCAN_DRV_Receive;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The steps are:&lt;/P&gt;&lt;P&gt;1 Init CAN;&lt;/P&gt;&lt;P&gt;2 Config Callback;&lt;/P&gt;&lt;P&gt;3 call&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold; font-size: 14px;"&gt;FLEXCAN_DRV_Receive&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 08:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785365#M2524</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-09-07T08:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan interrupt mode</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785366#M2525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir how to use event callback function acn you send me the sample to use the CAN with interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 09:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-interrupt-mode/m-p/785366#M2525</guid>
      <dc:creator>sandeepsandeepk</dc:creator>
      <dc:date>2019-12-17T09:56:01Z</dc:date>
    </item>
  </channel>
</rss>

