<?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: CAN0_ORed_Err_Wakeup_IRQHandler() is triggered  and FLEXCAN_GetErrorCounters is returning 0 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1659031#M23359</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;what s32ds and SDK version are you using?&lt;BR /&gt;I can imagine a case with ECR is zero when module recovers from bus off state. So it would be better to check rather errors flags for which error interrupt is enabled instead of ECR.&lt;BR /&gt;If you read ESR1 in your situation which one are set?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 08:44:26 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-05-29T08:44:26Z</dc:date>
    <item>
      <title>CAN0_ORed_Err_Wakeup_IRQHandler() is triggered  and FLEXCAN_GetErrorCounters is returning 0</title>
      <link>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1658085#M23321</link>
      <description>&lt;P&gt;I am working with flexcan drivers on s32k116. I have a CAN network with 2 nodes in total. I was trying different test cases trying to test durability of drivers and related code. There was a case in which the&amp;nbsp;CAN0_ORed_Err_Wakeup_IRQHandler() is being triggered but&amp;nbsp;FLEXCAN_GetErrorCounters(base) is returning 0. Also, other interrupts are not being triggered during this case as&amp;nbsp;the&amp;nbsp;CAN0_ORed_Err_Wakeup_IRQHandler() is triggered again and again.&lt;/P&gt;&lt;P&gt;I have attached screenshots of callstack from IDE and the snippet where the FLEXCAN_GetErrorCounters(base) is being used by driver layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 05:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1658085#M23321</guid>
      <dc:creator>ED86</dc:creator>
      <dc:date>2023-05-26T05:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAN0_ORed_Err_Wakeup_IRQHandler() is triggered  and FLEXCAN_GetErrorCounters is returning 0</title>
      <link>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1659031#M23359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;what s32ds and SDK version are you using?&lt;BR /&gt;I can imagine a case with ECR is zero when module recovers from bus off state. So it would be better to check rather errors flags for which error interrupt is enabled instead of ECR.&lt;BR /&gt;If you read ESR1 in your situation which one are set?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1659031#M23359</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-05-29T08:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN0_ORed_Err_Wakeup_IRQHandler() is triggered  and FLEXCAN_GetErrorCounters is returning 0</title>
      <link>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1662475#M23542</link>
      <description>&lt;P&gt;Thank you for your reply. Apparently following things were found.&lt;/P&gt;&lt;P&gt;1. Interrupt bit was being set in ESR1 and ECR was 0 in SDK due to which Error handler was not being called and Interrupt was not being cleared.&lt;/P&gt;&lt;P&gt;2. Interrupt was being cleared only by '|=' operation and not by '=' in "FLEXCAN_ClearErrIntStatusFlag".&lt;/P&gt;&lt;P&gt;Both of these things were found in SDK v3.0.2 and v4.0.3&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 07:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1662475#M23542</guid>
      <dc:creator>ED86</dc:creator>
      <dc:date>2023-06-02T07:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAN0_ORed_Err_Wakeup_IRQHandler() is triggered  and FLEXCAN_GetErrorCounters is returning 0</title>
      <link>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1666921#M23792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) here a driver is not ideally written for K11x devices, flags should be checks instead of error counter. However a reading ESR1 clears error status bits, so should be properly handled.&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;SPAN&gt;'|=' operation should not be used for flag clearing. Do you see it in driver&amp;nbsp;&lt;/SPAN&gt;somewhere?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 11:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN0-ORed-Err-Wakeup-IRQHandler-is-triggered-and-FLEXCAN/m-p/1666921#M23792</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-06-09T11:21:09Z</dc:date>
    </item>
  </channel>
</rss>

