<?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中的主题 Re: S32K341 interrupt handler wrong</title>
    <link>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1997107#M43409</link>
    <description>&lt;P&gt;Hi@&lt;SPAN&gt;zhengjianfei1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;我看了下，分析的流程是没有问题的，这或许可能是和你打的断点的位置有关系，可能在你进入Underfined_handler之后存在新的中断产生，可以先在Undefined_handler()这个地方先打断点，然后进入断点的时候在分析下对应的中断位置是不是正确的。&lt;/P&gt;
&lt;P&gt;例如我先看了下map文件中“PIT_0_ISR”对应的地址，然后直接在“PIT_0_ISR”定义的地方打上断点，这些结果是可以的。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1732012365817.png" style="width: 730px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311235iE1137B65D0B260CB/image-dimensions/730x363?v=v2" width="730" height="363" role="button" title="Senlent_0-1732012365817.png" alt="Senlent_0-1732012365817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2024 10:34:54 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2024-11-19T10:34:54Z</dc:date>
    <item>
      <title>S32K341 interrupt handler wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1995045#M43316</link>
      <description>&lt;P&gt;Hi NXP，&lt;/P&gt;&lt;P&gt;最近调试K342，发现芯片出现了如下图这么一个问题，按图片展示的，当前是进入uart0中断，中断向量157。中断向量表偏移地址是157*4，里面的值是正确的uart0的中断服务函数。但是实际芯片表现来看，却进去了undefined handler函数。通过ICSR观察，确实当前是uart0中断，通过mem看，中断向量值确实也没有问题，但进入的中断地址确实又错了。此问题在复位引脚拉低复位的情况下必现。通过软件复位和上电复位偶而会出现。是否对如下图的情况发生的原因有一些猜想原因呢？&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zhengjianfei1_0-1731635695615.png" style="width: 700px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/310681iD224D950BD7B97DE/image-dimensions/700x347?v=v2" width="700" height="347" role="button" title="zhengjianfei1_0-1731635695615.png" alt="zhengjianfei1_0-1731635695615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 02:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1995045#M43316</guid>
      <dc:creator>zhengjianfei1</dc:creator>
      <dc:date>2024-11-15T02:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K341 interrupt handler wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1996822#M43395</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;zhengjianfei1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;很抱歉让你久等阿，最近提问的很多，我在看你的问题了，我尽快给你分析下吧，我还需要点时间。&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 06:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1996822#M43395</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-19T06:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K341 interrupt handler wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1997107#M43409</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;zhengjianfei1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;我看了下，分析的流程是没有问题的，这或许可能是和你打的断点的位置有关系，可能在你进入Underfined_handler之后存在新的中断产生，可以先在Undefined_handler()这个地方先打断点，然后进入断点的时候在分析下对应的中断位置是不是正确的。&lt;/P&gt;
&lt;P&gt;例如我先看了下map文件中“PIT_0_ISR”对应的地址，然后直接在“PIT_0_ISR”定义的地方打上断点，这些结果是可以的。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1732012365817.png" style="width: 730px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311235iE1137B65D0B260CB/image-dimensions/730x363?v=v2" width="730" height="363" role="button" title="Senlent_0-1732012365817.png" alt="Senlent_0-1732012365817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 10:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1997107#M43409</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-19T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K341 interrupt handler wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1997767#M43430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_self"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;，&lt;/P&gt;&lt;P&gt;感谢答复。不过我们测试的时候还没有打断点，直接按复位按键，全速运行，随后程序卡死后attach上去看就是这个故障。SCB寄存器的ICSR里将会指示当前正在执行的中断的向量号的。我们先按照您的建议试试：先在undefined handler断点，断点停住的时候再来寄存器的值。&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K341-interrupt-handler-wrong/m-p/1997767#M43430</guid>
      <dc:creator>zhengjianfei1</dc:creator>
      <dc:date>2024-11-20T06:35:10Z</dc:date>
    </item>
  </channel>
</rss>

