<?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: Debugger Stuck at an interrupt Handler in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2081843#M47835</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234196"&gt;@snow3847&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to the release notes of the SDK you use.&lt;/P&gt;
&lt;P&gt;There is a list of compiler option that must be used, otherwise we cannot guarantee the functionality of the SW.&lt;/P&gt;
&lt;P&gt;This is from &lt;EM&gt;S32SDK_for_S32K1xx_RTM_4.0.2_ReleaseNotes.pdf&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1744813178279.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333488iB02907422FE5EC46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1744813178279.png" alt="danielmartynek_0-1744813178279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 14:20:14 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-04-16T14:20:14Z</dc:date>
    <item>
      <title>Debugger Stuck at an interrupt Handler</title>
      <link>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2081646#M47825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So i have this problem that when i debug the debugger is stuck at the PDB_DRV_ClearTimerIntFlag() function which is called here :&amp;nbsp;&lt;/P&gt;&lt;P&gt;void PDB1_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;/* Clear PDB instance Interrupt flag */&lt;BR /&gt;PDB_DRV_ClearTimerIntFlag(INST_PDB_1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I cannot go beyond this point and not even in the while() loop. I suspect that the problem is in the Optimization (-O3) because i have many time critical functions the software cannot clear the flag as fast(just my theory). I have also tried with -O0 but smae result. The reason i suspect this is because i worked once when i tried with -O3 level but not anymore after that(But maybe that is just a lucky strike). So how can i fix this problem?&lt;/P&gt;&lt;P&gt;I am using a s32k144 Microcontroller and a s32 Design studio version 3.5 as well as the intern PE Micro Debugger.&lt;/P&gt;&lt;P&gt;i will attach snippets below as well as the clock configuration.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snow3847_0-1744796118336.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333436i1C1DDEB08B78CB09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snow3847_0-1744796118336.png" alt="snow3847_0-1744796118336.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the main :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snow3847_1-1744796203421.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333437iBAE143129DE1950D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snow3847_1-1744796203421.png" alt="snow3847_1-1744796203421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clock Config:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snow3847_2-1744796230260.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333438i4051C29968391FCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snow3847_2-1744796230260.png" alt="snow3847_2-1744796230260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards and Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2081646#M47825</guid>
      <dc:creator>snow3847</dc:creator>
      <dc:date>2025-04-16T09:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Stuck at an interrupt Handler</title>
      <link>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2081843#M47835</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234196"&gt;@snow3847&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to the release notes of the SDK you use.&lt;/P&gt;
&lt;P&gt;There is a list of compiler option that must be used, otherwise we cannot guarantee the functionality of the SW.&lt;/P&gt;
&lt;P&gt;This is from &lt;EM&gt;S32SDK_for_S32K1xx_RTM_4.0.2_ReleaseNotes.pdf&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1744813178279.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/333488iB02907422FE5EC46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1744813178279.png" alt="danielmartynek_0-1744813178279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 14:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2081843#M47835</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-04-16T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Stuck at an interrupt Handler</title>
      <link>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2084717#M48006</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;So i tested a bit more and changed the Optimization Level to the recommended one which is in my case -O1 but nothing changed and i still have the same problem. I also maybe it could be a clock configuration problem as i rechecked that the right packages and sdk are correctly installed. The only thing that may be different is that in my previous project the Clocks Version was v11.0 and now somehow v9.0. although the clock Config is the same for both projects(I don't know if that is a problem). I honestly out of ideas as to why this is occuring and if you could think of any other cause please let me know.&lt;BR /&gt;&lt;BR /&gt;PS: i have also an inconsistent debug behaviour also in the I2C initialization and in both functions the following sub function seems to be the problem as the debugger stopps here : CLOCK_SYS_GetFreq().&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Yassmine</description>
      <pubDate>Tue, 22 Apr 2025 14:09:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2084717#M48006</guid>
      <dc:creator>snow3847</dc:creator>
      <dc:date>2025-04-22T14:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Stuck at an interrupt Handler</title>
      <link>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2086377#M48105</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234196"&gt;@snow3847&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Which SDK revision is it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 07:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Debugger-Stuck-at-an-interrupt-Handler/m-p/2086377#M48105</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-04-24T07:44:59Z</dc:date>
    </item>
  </channel>
</rss>

