<?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: How to get CAN error state? in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812897#M571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Byungju,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;sure - there is interrupt specially for Bus Off -&amp;nbsp;CAN0_ORed_IRQHandler and for other errors you can implement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;CAN0_Error_IRQHandler.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;You can install your handler by&amp;nbsp;INT_SYS_InstallHandler();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;More details about CAN interrupts you can find on Chapter&amp;nbsp;53.1.4 FlexCAN Interrupts (S32K1xx Series Reference Manual, Rev. 7, 04/2018 - page 1630).&amp;nbsp; SDK example &lt;STRONG&gt;lpit_periodic_interrupt_s32k144&amp;nbsp;&lt;/STRONG&gt;is good example how to add custom interrupt handler.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Hope it helps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Jiri&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2018 13:20:53 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-08-27T13:20:53Z</dc:date>
    <item>
      <title>How to get CAN error state?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812894#M568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use S32DS for ARM.2018.R1 and SDK EAR 0.8.6.&lt;/P&gt;&lt;P&gt;On FlexCAN, How to get CAN error state (CAN BUS OFF)?&lt;/P&gt;&lt;P&gt;I can't find the function to get CAN error state.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67153i501CC01BA6DEC91C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 05:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812894#M568</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-08-22T05:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CAN error state?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812895#M569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like that this feature is not implemented in SDK. You can get this info from register directly:&lt;/P&gt;&lt;P&gt;CAN0-&amp;gt;ESR1&amp;nbsp;&amp;amp; CAN_ESR1_FLTCONF_MASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 13:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812895#M569</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-08-24T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CAN error state?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812896#M570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #222222; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; position: static; z-index: auto; -ms-word-wrap: break-word; min-height: 0px; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;"&gt;Can I set a callback or interrupt when a CAN error occurs?&lt;/SPAN&gt;&lt;BR style="text-align: left; color: #222222; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; position: static; z-index: auto; -ms-word-wrap: break-word; min-height: 0px; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;" /&gt;&lt;SPAN style="text-align: left; color: #222222; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; position: static; z-index: auto; -ms-word-wrap: break-word; min-height: 0px; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;"&gt;If so, how do I set it up?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #222222; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; position: static; z-index: auto; -ms-word-wrap: break-word; min-height: 0px; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #222222; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; position: static; z-index: auto; -ms-word-wrap: break-word; min-height: 0px; orphans: 2; background-color: transparent; -webkit-text-stroke-width: 0px;"&gt;Byungju.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2018 23:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812896#M570</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-08-26T23:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CAN error state?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812897#M571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Byungju,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;sure - there is interrupt specially for Bus Off -&amp;nbsp;CAN0_ORed_IRQHandler and for other errors you can implement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;CAN0_Error_IRQHandler.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;You can install your handler by&amp;nbsp;INT_SYS_InstallHandler();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;More details about CAN interrupts you can find on Chapter&amp;nbsp;53.1.4 FlexCAN Interrupts (S32K1xx Series Reference Manual, Rev. 7, 04/2018 - page 1630).&amp;nbsp; SDK example &lt;STRONG&gt;lpit_periodic_interrupt_s32k144&amp;nbsp;&lt;/STRONG&gt;is good example how to add custom interrupt handler.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Hope it helps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Jiri&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 13:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812897#M571</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-08-27T13:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get CAN error state?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812898#M572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I will try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Byungju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 23:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-get-CAN-error-state/m-p/812898#M572</guid>
      <dc:creator>kbj</dc:creator>
      <dc:date>2018-08-27T23:34:50Z</dc:date>
    </item>
  </channel>
</rss>

