<?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: After debugging and using &amp;quot;attach running target&amp;quot;, clicking restart cannot return the in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1869171#M12307</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232767"&gt;@Janeting123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems the "restart" is different from a reset, but I do not know exactly what the difference is since this is implementation by the PE Micro plugin.&lt;/P&gt;
&lt;P&gt;You can try issuing "&lt;STRONG&gt;monitor reset&lt;/STRONG&gt;" from the debugger console to restart the code back into main:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_2-1716244813019.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279700iD85C7D1ED241A0EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_2-1716244813019.png" alt="Julin_AragnM_2-1716244813019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try this and see if this works in your debug session. I've tested it and it seems to work correctly.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 22:40:54 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2024-05-20T22:40:54Z</dc:date>
    <item>
      <title>After debugging and using "attach running target", clicking restart cannot return the software to th</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1866686#M12287</link>
      <description>&lt;P&gt;Because I need to know how some functions are running during a cold start, I used the attach function.&lt;/P&gt;&lt;P&gt;After debugging and using "attach running target", clicking restart cannot return the software to the initialization stage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My debug settings are as follows：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2024-05-16_09-58-57.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279012i4677B80474E345B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2024-05-16_09-58-57.png" alt="Snipaste_2024-05-16_09-58-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set a breakpoint in the running phase and initialization phase, and then click restart. The program skips the breakpoint in the initialization phase and stops at the running phase Task.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2024-05-16_10-01-18.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279013iF5B9F45F190EC913/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2024-05-16_10-01-18.png" alt="Snipaste_2024-05-16_10-01-18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 02:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1866686#M12287</guid>
      <dc:creator>Janeting123</dc:creator>
      <dc:date>2024-05-16T02:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1867403#M12291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232767"&gt;@Janeting123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;PEmicro's Eclipse plugin supports the "attach" type of debug session. During an "attach" the GDB client is launched in a way that does not disturb the state of a target device, i.e. it skips the FLASH programming and &lt;STRONG&gt;reset steps&lt;/STRONG&gt; which are a part of a standard PEmicro debug session.&lt;/P&gt;
&lt;P&gt;It seems you cannot issue a reset when attaching, you could try halting the sessions before disconnecting, then attaching again, but if you are trying to see the cold start, shouldn't it be easier to debug and flash normally and then issue a restart operation?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1867403#M12291</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-05-16T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1867568#M12292</link>
      <description>&lt;P&gt;Dear, it seems that you didn't understand what I meant. After the device was cold-started, I connected the debugger and started debugging using the "attach" method. There was no problem until this step, but after I debug for a while, I need to reset to let the program start running again. At this time, I don't need to refresh the software and cold start. I just want to keep the current connection status and click the "restart" button to return the program to the initialization stage. However, I encountered a problem. Regardless of whether the current program is running or stopped, clicking restart will not achieve the effect.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 01:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1867568#M12292</guid>
      <dc:creator>Janeting123</dc:creator>
      <dc:date>2024-05-17T01:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1868176#M12297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232767"&gt;@Janeting123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You cannot issue a reset when attaching to running target with PE Micro's implementation, as I've said in the previous reply, "it skips&amp;nbsp;&lt;STRONG&gt;reset steps&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which are a part of a standard PEmicro debug session."&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 16:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1868176#M12297</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-05-17T16:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1868487#M12300</link>
      <description>I still can't understand that whether to issue a reset during the connection process and whether to actively issue a reset after being connected should be two different things. Maybe the restart button is not equal to reset? Is there any other way for me to actively issue a reset after being connected?</description>
      <pubDate>Mon, 20 May 2024 02:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1868487#M12300</guid>
      <dc:creator>Janeting123</dc:creator>
      <dc:date>2024-05-20T02:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1869171#M12307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232767"&gt;@Janeting123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems the "restart" is different from a reset, but I do not know exactly what the difference is since this is implementation by the PE Micro plugin.&lt;/P&gt;
&lt;P&gt;You can try issuing "&lt;STRONG&gt;monitor reset&lt;/STRONG&gt;" from the debugger console to restart the code back into main:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_2-1716244813019.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279700iD85C7D1ED241A0EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_2-1716244813019.png" alt="Julin_AragnM_2-1716244813019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try this and see if this works in your debug session. I've tested it and it seems to work correctly.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 22:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1869171#M12307</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-05-20T22:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1870264#M12321</link>
      <description>&lt;P&gt;Hello, this method is not successful. After many tests, this method is only effective when the program stays in the initialization phase. At other times, it will cause the debugger connection to be disconnected.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2024-05-22_13-57-44.png" style="width: 772px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280013iA7FAC4F6D5DF8657/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2024-05-22_13-57-44.png" alt="Snipaste_2024-05-22_13-57-44.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1870264#M12321</guid>
      <dc:creator>Janeting123</dc:creator>
      <dc:date>2024-05-22T06:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: After debugging and using "attach running target", clicking restart cannot return the</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1871321#M12329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232767"&gt;@Janeting123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you clarify how you tested this? I can see the command working correctly when being in the while loop from this example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1716409957200.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280292iD9BC4AAD6B749511/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1716409957200.png" alt="Julin_AragnM_0-1716409957200.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then issuing a "monitor reset" I can see from the console that the CPU has been reset by debugger back to the initialization breakpoint in main():&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1716410076878.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280294i8F05F0ECAE07D8B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1716410076878.png" alt="Julin_AragnM_1-1716410076878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Even if this doesn't work on your side, this is unfortunately out of scope for the community support as the implementation of the restart and resets from the debugger comes from the PEMicro implementation. I apologize for the inconveniences.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 20:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/After-debugging-and-using-quot-attach-running-target-quot/m-p/1871321#M12329</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-05-22T20:35:12Z</dc:date>
    </item>
  </channel>
</rss>

