<?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>S32Kのトピックs32k144:FLEXCAN_IRQHandler issue</title>
    <link>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968240#M41727</link>
    <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;Recently, on our project, we encountered an issue related to FlexCAN interrupts. Here's a description of the phenomenon:&lt;/P&gt;&lt;P&gt;On CAN instance 2, we have configured 14 message buffers (MBs) for receiving messages. After a period of testing, it was discovered that the entire RTOS task scheduling had become unresponsive.&lt;/P&gt;&lt;P&gt;Through breakpoints, we found that the system was continuously processing the FLEXCAN_IRQHandler. Further debugging revealed that the corresponding message buffer interrupt was active, but the status of the message buffer was FLEXCAN_MB_IDLE. This resulted in the inability of FLEXCAN_IRQHandler to clear the interrupt flag for that specific message buffer, which potentially caused the continuous invocation of FLEXCAN_IRQHandler and prevented the system from handling other interrupts.&lt;/P&gt;&lt;P&gt;Here's an overview of how the message buffers were being used during the issue reproduction:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ad394996c7c0675e70945908d26720c.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303173i870CB412CB6D689B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ad394996c7c0675e70945908d26720c.png" alt="ad394996c7c0675e70945908d26720c.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please provide some debugging suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks！&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 00:55:18 GMT</pubDate>
    <dc:creator>gumu</dc:creator>
    <dc:date>2024-10-08T00:55:18Z</dc:date>
    <item>
      <title>s32k144:FLEXCAN_IRQHandler issue</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968240#M41727</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;Recently, on our project, we encountered an issue related to FlexCAN interrupts. Here's a description of the phenomenon:&lt;/P&gt;&lt;P&gt;On CAN instance 2, we have configured 14 message buffers (MBs) for receiving messages. After a period of testing, it was discovered that the entire RTOS task scheduling had become unresponsive.&lt;/P&gt;&lt;P&gt;Through breakpoints, we found that the system was continuously processing the FLEXCAN_IRQHandler. Further debugging revealed that the corresponding message buffer interrupt was active, but the status of the message buffer was FLEXCAN_MB_IDLE. This resulted in the inability of FLEXCAN_IRQHandler to clear the interrupt flag for that specific message buffer, which potentially caused the continuous invocation of FLEXCAN_IRQHandler and prevented the system from handling other interrupts.&lt;/P&gt;&lt;P&gt;Here's an overview of how the message buffers were being used during the issue reproduction:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ad394996c7c0675e70945908d26720c.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303173i870CB412CB6D689B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ad394996c7c0675e70945908d26720c.png" alt="ad394996c7c0675e70945908d26720c.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please provide some debugging suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks！&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 00:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968240#M41727</guid>
      <dc:creator>gumu</dc:creator>
      <dc:date>2024-10-08T00:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144:FLEXCAN_IRQHandler issue</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968242#M41728</link>
      <description>&lt;P&gt;update SDK version info:&lt;/P&gt;&lt;P&gt;s32k144_sdk 3.0.0&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 00:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968242#M41728</guid>
      <dc:creator>gumu</dc:creator>
      <dc:date>2024-10-08T00:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144:FLEXCAN_IRQHandler issue</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968661#M41757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;later SDK versions (from SDK4.0.x) fixed this behavior with possible&amp;nbsp;trapping in ISR loop, as far as I know. Below is code from 4.0.3 version...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1728373112352.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303331i540689FD341FA9C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1728373112352.png" alt="PetrS_0-1728373112352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So please update to latest SDK.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 07:39:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968661#M41757</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-10-08T07:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144:FLEXCAN_IRQHandler issue</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968718#M41761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your support! I just updated the code and the issue did not reoccur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-FLEXCAN-IRQHandler-issue/m-p/1968718#M41761</guid>
      <dc:creator>gumu</dc:creator>
      <dc:date>2024-10-08T08:22:39Z</dc:date>
    </item>
  </channel>
</rss>

