<?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: EB: How to add CAN bus off interrupt callback function? in S32K</title>
    <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2003563#M43715</link>
    <description>&lt;P&gt;Hi PetrS,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But we can not modify function CanIf_ControllerBusOff() as it is provided by RTD. Actually I want to perform some action when bus off occured. So I want to know whether there is a bus off interrupt callback function that I can use.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 08:58:03 GMT</pubDate>
    <dc:creator>temp_user</dc:creator>
    <dc:date>2024-11-28T08:58:03Z</dc:date>
    <item>
      <title>EB: How to add CAN bus off interrupt callback function?</title>
      <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/1996272#M43382</link>
      <description>&lt;P&gt;1. I want to add CAN bus off interrupt callback function in EB. I found in CANIf module, there is&amp;nbsp;&lt;STRONG&gt;CanIfDispatchCfg&lt;/STRONG&gt;, and if I set callback function name in&amp;nbsp;&lt;STRONG&gt;CanIfDispatchUserCtrlBusOffName, &lt;/STRONG&gt;and set "CDD" in&amp;nbsp;&lt;STRONG&gt;CanIfDispatchUserCtrlBusOffUL, &lt;/STRONG&gt;then can I set a callback function for bus off interrupt?&lt;/P&gt;&lt;P&gt;2. If not, can I set CAN bus interrupt callback function in EB? Here I use S32K344 and RTD 4.0.0.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, when I follow the point 1 to set the bus off interrupt callback function, then after I build the project, some error reported, "CAN bus off callback function is not declared here".&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 10:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/1996272#M43382</guid>
      <dc:creator>temp_user</dc:creator>
      <dc:date>2024-11-18T10:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: EB: How to add CAN bus off interrupt callback function?</title>
      <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/1998755#M43486</link>
      <description>&lt;P&gt;Any one can support?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 09:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/1998755#M43486</guid>
      <dc:creator>temp_user</dc:creator>
      <dc:date>2024-11-21T09:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: EB: How to add CAN bus off interrupt callback function?</title>
      <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2003548#M43714</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;it would be enough to select interrupt processing in FlexCAN setting and add interrupt handler in Platform setting&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1732783259956.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313058i9C320837B39F7F83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1732783259956.png" alt="PetrS_0-1732783259956.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_1-1732783266738.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313059i2D7FF77F958D69BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_1-1732783266738.png" alt="PetrS_1-1732783266738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then&amp;nbsp;CanIf_ControllerBusOff callback is called when Bus off happens.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 08:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2003548#M43714</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-11-28T08:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: EB: How to add CAN bus off interrupt callback function?</title>
      <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2003563#M43715</link>
      <description>&lt;P&gt;Hi PetrS,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But we can not modify function CanIf_ControllerBusOff() as it is provided by RTD. Actually I want to perform some action when bus off occured. So I want to know whether there is a bus off interrupt callback function that I can use.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 08:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2003563#M43715</guid>
      <dc:creator>temp_user</dc:creator>
      <dc:date>2024-11-28T08:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: EB: How to add CAN bus off interrupt callback function?</title>
      <link>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2006987#M43878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;below is feedback from RTD team...&lt;/P&gt;
&lt;P&gt;This way just applied in ASR context. Please follow steps:&lt;/P&gt;
&lt;P&gt;1. Create 1 callback function for Bus off in main.c. User defines this function by themselves.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1733310461173.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314056iE8CD2CF2F2F72CCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1733310461173.png" alt="PetrS_0-1733310461173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create 1 header file to extern this callback function and this file will be included in Can_Cfg.c. In my case, I created CanIf_Header.h&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_1-1733310461451.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314057i0AAFFD7FBBFA7A11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_1-1733310461451.png" alt="PetrS_1-1733310461451.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this file, extern the function Bus Off Callback.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_2-1733310461448.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314055i5A93DFE57854056D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_2-1733310461448.png" alt="PetrS_2-1733310461448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. In CanIf configuration, fill header file and Call back function name.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_3-1733310461087.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314058iFC1151C1854EC902/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_3-1733310461087.png" alt="PetrS_3-1733310461087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_4-1733310461415.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314059iBFF3A9A32A72FB38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_4-1733310461415.png" alt="PetrS_4-1733310461415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EB-How-to-add-CAN-bus-off-interrupt-callback-function/m-p/2006987#M43878</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-12-04T11:08:33Z</dc:date>
    </item>
  </channel>
</rss>

