<?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 MPC5674F – Breakpoints in VS Code cause PC to jump to RCHW with SIGINT/IVOR6 trap in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5674F-Breakpoints-in-VS-Code-cause-PC-to-jump-to-RCHW-with/m-p/2165089#M28006</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am debugging an MPC5674F (e200z7, VLE) application.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Toolchain: GCC powerpc-eabivle-gcc, GDB powerpc-eabivle-gdb&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In &lt;STRONG&gt;S32 Design Studio IDE&lt;/STRONG&gt;, debugging works perfectly: breakpoints hit and resume continues as expected.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In &lt;STRONG&gt;VS Code&lt;/STRONG&gt; with the same ELF, breakpoints hit, but when I continue, the &lt;STRONG&gt;PC jumps to 0x00000004 (RCHW)&lt;/STRONG&gt; instead of resuming at the correct address. This immediately triggers a &lt;STRONG&gt;Program Exception (IVOR6)&lt;/STRONG&gt; and I also see a &lt;STRONG&gt;SIGINT trap&lt;/STRONG&gt; reported in the debugger.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Checks done:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;ELF entry point is correct (0x400, Reset_Handler).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Symbols load fine.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Compiler flags: -mcpu=e200z7 -mvle -g3 -O0.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After failure, GDB shows:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;nbsp;&amp;nbsp;$pc = 0x4 &amp;lt;RCHW+4&amp;gt;&lt;BR /&gt;Program received signal SIGTRAP, Trace/breakpoint trap.&lt;BR /&gt;Program received signal SIGINT, Interrupt.&lt;BR /&gt;0x00000650 in IVOR6_Vector ()&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Why does PC reset to RCHW (0x00000004) and cause SIGINT/IVOR6 after breakpoints only in VS Code?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What reset/init or breakpoint handling sequence does &lt;STRONG&gt;S32 Design Studio&lt;/STRONG&gt; use that I should replicate in VS Code to avoid this?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Anybody has tried MPC56xx series with VSCODE debugging?&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;Let me know if you need launch.json configuration&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Narendra.C&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="MPC5674F" id="MPC5674F"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 08 Sep 2025 09:59:24 GMT</pubDate>
    <dc:creator>CNarendra</dc:creator>
    <dc:date>2025-09-08T09:59:24Z</dc:date>
    <item>
      <title>MPC5674F – Breakpoints in VS Code cause PC to jump to RCHW with SIGINT/IVOR6 trap</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5674F-Breakpoints-in-VS-Code-cause-PC-to-jump-to-RCHW-with/m-p/2165089#M28006</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am debugging an MPC5674F (e200z7, VLE) application.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Toolchain: GCC powerpc-eabivle-gcc, GDB powerpc-eabivle-gdb&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In &lt;STRONG&gt;S32 Design Studio IDE&lt;/STRONG&gt;, debugging works perfectly: breakpoints hit and resume continues as expected.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In &lt;STRONG&gt;VS Code&lt;/STRONG&gt; with the same ELF, breakpoints hit, but when I continue, the &lt;STRONG&gt;PC jumps to 0x00000004 (RCHW)&lt;/STRONG&gt; instead of resuming at the correct address. This immediately triggers a &lt;STRONG&gt;Program Exception (IVOR6)&lt;/STRONG&gt; and I also see a &lt;STRONG&gt;SIGINT trap&lt;/STRONG&gt; reported in the debugger.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Checks done:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;ELF entry point is correct (0x400, Reset_Handler).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Symbols load fine.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Compiler flags: -mcpu=e200z7 -mvle -g3 -O0.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After failure, GDB shows:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;nbsp;&amp;nbsp;$pc = 0x4 &amp;lt;RCHW+4&amp;gt;&lt;BR /&gt;Program received signal SIGTRAP, Trace/breakpoint trap.&lt;BR /&gt;Program received signal SIGINT, Interrupt.&lt;BR /&gt;0x00000650 in IVOR6_Vector ()&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Why does PC reset to RCHW (0x00000004) and cause SIGINT/IVOR6 after breakpoints only in VS Code?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What reset/init or breakpoint handling sequence does &lt;STRONG&gt;S32 Design Studio&lt;/STRONG&gt; use that I should replicate in VS Code to avoid this?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Anybody has tried MPC56xx series with VSCODE debugging?&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;Let me know if you need launch.json configuration&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Narendra.C&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="MPC5674F" id="MPC5674F"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 08 Sep 2025 09:59:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5674F-Breakpoints-in-VS-Code-cause-PC-to-jump-to-RCHW-with/m-p/2165089#M28006</guid>
      <dc:creator>CNarendra</dc:creator>
      <dc:date>2025-09-08T09:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5674F – Breakpoints in VS Code cause PC to jump to RCHW with SIGINT/IVOR6 trap</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5674F-Breakpoints-in-VS-Code-cause-PC-to-jump-to-RCHW-with/m-p/2165151#M28007</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Why does PC reset to RCHW (0x00000004) and cause SIGINT/IVOR6 after breakpoints only in VS Code?&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There can be 2 reasons:&lt;/P&gt;
&lt;P&gt;1. reset has occurred.&lt;/P&gt;
&lt;P&gt;2. branch to that address was executed.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;What reset/init or breakpoint handling sequence does &lt;STRONG&gt;S32 Design Studio&lt;/STRONG&gt; use that I should replicate in VS Code to avoid this?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;S32DS support mulitple debugger interfaces.&amp;nbsp;Breakpoints are managed via GDB and the debugger interface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Anybody has tried MPC56xx series with VSCODE debugging?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Not here in NXP.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 11:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5674F-Breakpoints-in-VS-Code-cause-PC-to-jump-to-RCHW-with/m-p/2165151#M28007</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2025-09-08T11:18:40Z</dc:date>
    </item>
  </channel>
</rss>

