<?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: S32K1 attach gdbserver without reset</title>
    <link>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1889232#M36698</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Using the script when starting the gdb server solved the problem.&lt;/P&gt;&lt;P&gt;`JLinkGDBServerCLExe -device S32K144W -endian little -if SWD -speed auto -noir -noLocalhostOnly -nologtofile -TelnetPort 19020 -select IP=192.168.x.y -JLinkScriptFile NXP_Kinetis_S32_Attach.JLinkScript -nohalt`&lt;/P&gt;&lt;P&gt;Thank you very much and have a nice day!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 07:09:45 GMT</pubDate>
    <dc:creator>peacefulcarrot</dc:creator>
    <dc:date>2024-06-18T07:09:45Z</dc:date>
    <item>
      <title>S32K1 attach gdbserver without reset</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1888731#M36663</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to attach my debugger (SEGGER J-Link) to a running target to debug it. However, when starting the gdb server, the target seems to reset.&lt;/P&gt;&lt;P&gt;Steps to reproduce this issue:&lt;/P&gt;&lt;P&gt;1. Start SEGGER J-Link Remote Server&lt;/P&gt;&lt;P&gt;2. Start gdb server (in WSL2) using the following command: `JLinkGDBServerCLExe -device S32K144W -endian little -if SWD -speed auto -noir -noLocalhostOnly -nologtofile -TelnetPort 19020 -select IP=192.168.x.y -noreset -nohalt`&lt;/P&gt;&lt;P&gt;Observer behaviour:&lt;/P&gt;&lt;P&gt;When the command is run, the RESET pin is pulled down for 160ms. The running program is stopped (observed by the blinking led that stops). After ~4 seconds, the gdbserver is attached (&amp;gt; `Connected to target`) and the application starts again (led blinking). However, the application was reset, which is not as desired.&lt;/P&gt;&lt;P&gt;Any idea to why this would be or what I could do to find the cause? The reset reason seems to be SW reset.&lt;/P&gt;&lt;P&gt;The used MCU is a S32K144W on a custom board. Debugging etc works without a problem, the issue I am having is just that I cannot attach to a running target.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:58:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1888731#M36663</guid>
      <dc:creator>peacefulcarrot</dc:creator>
      <dc:date>2024-06-17T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 attach gdbserver without reset</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1889185#M36692</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234079"&gt;@peacefulcarrot&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It is necessary that the MCU is in the unlocked state.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;A special JLink script is needed, which can be found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wiki.segger.com/S32Kxxx#Attach_to_debug_session" target="_blank" rel="noopener"&gt;https://wiki.segger.com/S32Kxxx#Attach_to_debug_session&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;JLink commander has to be called in following way:&lt;/P&gt;
&lt;P&gt;C:\Programme\SEGGER\JLink\JLink.exe -JLinkScriptFile NXP_Kinetis_S32_Attach.JLinkScript&lt;/P&gt;
&lt;P&gt;Then, the MCU is not reset, and access to all memory and registers is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please contact SEGGER support if you have any questions,&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>Tue, 18 Jun 2024 07:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1889185#M36692</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-06-18T07:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 attach gdbserver without reset</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1889232#M36698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Using the script when starting the gdb server solved the problem.&lt;/P&gt;&lt;P&gt;`JLinkGDBServerCLExe -device S32K144W -endian little -if SWD -speed auto -noir -noLocalhostOnly -nologtofile -TelnetPort 19020 -select IP=192.168.x.y -JLinkScriptFile NXP_Kinetis_S32_Attach.JLinkScript -nohalt`&lt;/P&gt;&lt;P&gt;Thank you very much and have a nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-attach-gdbserver-without-reset/m-p/1889232#M36698</guid>
      <dc:creator>peacefulcarrot</dc:creator>
      <dc:date>2024-06-18T07:09:45Z</dc:date>
    </item>
  </channel>
</rss>

