<?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: MPC555 unhandled interrupt in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1754101#M20010</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225377"&gt;@Angus_scot_uk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on PowerPC, opcode 0 is used for software breakpoint. If a debugger is attached, execution of such opcode will cause entering to debug mode. If a debugger is not attached, it is executed as a NOP instruction. I do not have experience with this on MPC555 but I believe this is the same like on newer MPC5xxx devices.&lt;/P&gt;
&lt;P&gt;Without a debugger, I would use endless loop in the handler or something like that.&lt;/P&gt;
&lt;P&gt;When checking the registers, it looks like it is caused by IRQ4. UIPEND can be zero in this case. This is copied from application note AN2109:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1699436155091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248983i4F1C9AADA685D74B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1699436155091.png" alt="lukaszadrapa_0-1699436155091.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;Lukas&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 09:37:33 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2023-11-08T09:37:33Z</dc:date>
    <item>
      <title>MPC555 unhandled interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1752941#M19979</link>
      <description>&lt;P&gt;We are using MPC555 Quick Start Code Exception handlers and the "unhandled interrupt" handler.&lt;/P&gt;&lt;P&gt;The code looks like the following:&lt;/P&gt;&lt;P&gt;void unhandledISR(void)&lt;BR /&gt;{&lt;BR /&gt;asm {&lt;BR /&gt;opword 0 /* debug */&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;When the&amp;nbsp;"unhandled interrupt" is taken the CPU seems to stall (there is no debugger attached to the target hardware).&lt;/P&gt;&lt;P&gt;How does "opword 0" cause the CPU to halt?&lt;/P&gt;&lt;P&gt;After instrumenting the code (printf output to a UART) I found the following:&lt;/P&gt;&lt;P&gt;LEVEL_7_ISR&lt;BR /&gt;unhandledISR&lt;BR /&gt;SIVEC: 0x3C000000&lt;BR /&gt;IntSrc: 15&lt;BR /&gt;SIPEND: 0x00800000&lt;BR /&gt;SIMASK: 0x01D60000&lt;BR /&gt;UIPEND: 0x00000000&lt;BR /&gt;rB: 0x00000000&lt;BR /&gt;UMCR: 0x20000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SIVEC: 0x3C000000 == Interrupt Code 15&lt;/P&gt;&lt;P&gt;and we end up in the&amp;nbsp;unhandledISR() via the jump table entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would&amp;nbsp;Interrupt Code 15 fire when&amp;nbsp;&lt;/P&gt;&lt;P&gt;UIPEND: 0x00000000 and&amp;nbsp;&lt;/P&gt;&lt;P&gt;SIPEND: 0x00800000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1752941#M19979</guid>
      <dc:creator>Angus_scot_uk</dc:creator>
      <dc:date>2023-11-06T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: MPC555 unhandled interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1754101#M20010</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225377"&gt;@Angus_scot_uk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on PowerPC, opcode 0 is used for software breakpoint. If a debugger is attached, execution of such opcode will cause entering to debug mode. If a debugger is not attached, it is executed as a NOP instruction. I do not have experience with this on MPC555 but I believe this is the same like on newer MPC5xxx devices.&lt;/P&gt;
&lt;P&gt;Without a debugger, I would use endless loop in the handler or something like that.&lt;/P&gt;
&lt;P&gt;When checking the registers, it looks like it is caused by IRQ4. UIPEND can be zero in this case. This is copied from application note AN2109:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1699436155091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248983i4F1C9AADA685D74B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1699436155091.png" alt="lukaszadrapa_0-1699436155091.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;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1754101#M20010</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-11-08T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: MPC555 unhandled interrupt</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1754285#M20016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for responding to my message.&lt;/P&gt;&lt;P&gt;Yes, on initial inspection it does look like IRQ4 is the interrupt cause, but, if it was IRQ4 then&lt;/P&gt;&lt;P&gt;SIVEC would have the value 0x2000 0000‬ (yes/no)?&lt;/P&gt;&lt;P&gt;We observe SIVEC == 0x3C000000 hence my confusion.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASU&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 14:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MPC555-unhandled-interrupt/m-p/1754285#M20016</guid>
      <dc:creator>Angus_scot_uk</dc:creator>
      <dc:date>2023-11-08T14:56:00Z</dc:date>
    </item>
  </channel>
</rss>

