<?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>LPC MicrocontrollersのトピックRe: SWD stopped working on LPC 54608</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1681793#M53332</link>
    <description>&lt;P&gt;Thank you for kind reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What ISP setting did you meant ? Unfortunately our boards have only two options:&lt;/P&gt;&lt;P&gt;First -&amp;gt; Flash, no ISP. (ISP-0 = 1, ISP-1 = 1, ISP-2 = 1)&lt;BR /&gt;Second -&amp;gt;&amp;nbsp;USB 0 Mass Storage Device Class (MSC).&amp;nbsp;(ISP-0 = 1, ISP-1 = 0, ISP-2 = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We've tried both, this is the JLink Commander output:&lt;/P&gt;&lt;P&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;&lt;BR /&gt;Device "LPC54608J512" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;Failed to attach to CPU. Trying connect under reset.&lt;BR /&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 07:49:28 GMT</pubDate>
    <dc:creator>markoLPC</dc:creator>
    <dc:date>2023-07-05T07:49:28Z</dc:date>
    <item>
      <title>SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1674848#M53198</link>
      <description>&lt;P&gt;Debugging capability suddenly stopped on our two boards with LPC 54608.&amp;nbsp;&lt;BR /&gt;We're using Jlink PRO with MCUExpresso 11.7.0_9198 on Ubuntu 22.04.&lt;BR /&gt;MCUs Vcc is present, reset line does work.&lt;BR /&gt;Debugger/adapter/cable work as we can debug on other boards.&amp;nbsp;&lt;BR /&gt;Otherwise the MCUs work normally, we can program them thru USB.&lt;/P&gt;&lt;P&gt;Is there a tool, for Linux to check the SWD registers, or maybe to unbrick the debugger port?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We also don't exclude that ports were damaged because the ESD.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The output from a IDE/debugger when failing to connect to target is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;SEGGER J-Link GDB Server V7.88h Command Line Version&lt;/P&gt;&lt;P&gt;JLinkARM.dll V7.88h (DLL compiled Jun 16 2023 09:21:40)&lt;/P&gt;&lt;P&gt;Command line: -SettingsFile "/home/***/Debug/kraf2 JLink Debug SettingsFile.jlink" -nosilent -swoport 2337 -select IP -telnetport 2338 -singlerun -endian little -noir -speed 4000 -port 2339 -vd -device LPC54608J512 -if SWD -halt -reportuseraction&lt;BR /&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file: none&lt;BR /&gt;GDB Server Listening port: 2339&lt;BR /&gt;SWO raw output listening port: 2337&lt;BR /&gt;Terminal I/O port: 2338&lt;BR /&gt;Accept remote connection: yes&lt;BR /&gt;Generate logfile: off&lt;BR /&gt;Verify download: on&lt;BR /&gt;Init regs on start: off&lt;BR /&gt;Silent mode: off&lt;BR /&gt;Single run mode: on&lt;BR /&gt;Target connection timeout: 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface: IP&lt;BR /&gt;J-Link script: none&lt;BR /&gt;J-Link settings file: "/home/***/Debug/kraf2 JLink Debug SettingsFile.jlink"&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device: LPC54608J512&lt;BR /&gt;Target device parameters: none&lt;BR /&gt;Target interface: SWD&lt;BR /&gt;Target interface speed: 4000kHz&lt;BR /&gt;Target endian: little&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Device "LPC54608J512" selected.&lt;BR /&gt;Firmware: J-Link Pro V5-1 compiled Jun 6 2023 10:50:24&lt;BR /&gt;Hardware: V5.10&lt;BR /&gt;S/N: 175102726&lt;BR /&gt;Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 3.21 V&lt;BR /&gt;Listening on TCP/IP port 2339&lt;BR /&gt;Connecting to target...&lt;BR /&gt;Failed to attach to CPU. Trying connect under reset.&lt;BR /&gt;ERROR: Could not connect to target.&lt;BR /&gt;Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...&lt;BR /&gt;Shutting down...&lt;BR /&gt;Could not connect to target.&lt;BR /&gt;Please check power, connection and settings.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error in final launch sequence:&lt;/P&gt;&lt;P&gt;Failed to execute MI command:&lt;BR /&gt;-target-select remote localhost:2339&lt;/P&gt;&lt;P&gt;Error message from debugger back end:&lt;BR /&gt;Remote communication error. Target disconnected.: Connection reset by peer.&lt;BR /&gt;Failed to execute MI command:&lt;BR /&gt;-target-select remote localhost:2339&lt;/P&gt;&lt;P&gt;Error message from debugger back end:&lt;BR /&gt;Remote communication error. Target disconnected.: Connection reset by peer.&lt;BR /&gt;Remote communication error. Target disconnected.: Connection reset by peer.&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1674848#M53198</guid>
      <dc:creator>markoLPC</dc:creator>
      <dc:date>2023-06-23T08:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1675389#M53215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;markoLPC&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can use Jlink commander to test basic SWD connection.&lt;/P&gt;
&lt;P&gt;I suggest you setting board in ISP mode first.&lt;/P&gt;
&lt;P&gt;then follow attached video to test SWD interface.&lt;/P&gt;
&lt;P&gt;My test is base on LPC54628, please change your device for the Jlink commander.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 07:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1675389#M53215</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-06-25T07:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1681793#M53332</link>
      <description>&lt;P&gt;Thank you for kind reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What ISP setting did you meant ? Unfortunately our boards have only two options:&lt;/P&gt;&lt;P&gt;First -&amp;gt; Flash, no ISP. (ISP-0 = 1, ISP-1 = 1, ISP-2 = 1)&lt;BR /&gt;Second -&amp;gt;&amp;nbsp;USB 0 Mass Storage Device Class (MSC).&amp;nbsp;(ISP-0 = 1, ISP-1 = 0, ISP-2 = 1)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We've tried both, this is the JLink Commander output:&lt;/P&gt;&lt;P&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;BR /&gt;Speed&amp;gt;&lt;BR /&gt;Device "LPC54608J512" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via SWD&lt;BR /&gt;Failed to attach to CPU. Trying connect under reset.&lt;BR /&gt;Cannot connect to target.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 07:49:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1681793#M53332</guid>
      <dc:creator>markoLPC</dc:creator>
      <dc:date>2023-07-05T07:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682826#M53348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;markoLPC&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try jlink commander unlock command. It may unclock SWD interface&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1688626143651.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231041i0AB5B18AFF489295/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1688626143651.png" alt="ZhangJennie_0-1688626143651.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jennie&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 06:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682826#M53348</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-07-06T06:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682916#M53349</link>
      <description>&lt;P&gt;Jennie thank you for suggestion.&lt;BR /&gt;We've tried, unfortunately unlocking was unsuccessful.&lt;/P&gt;&lt;P&gt;This is the JLink output:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J-Link&amp;gt;unlock LPC5460X&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Unlocking device...failed.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 07:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682916#M53349</guid>
      <dc:creator>markoLPC</dc:creator>
      <dc:date>2023-07-06T07:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682954#M53350</link>
      <description>&lt;P&gt;Did you try a Flash mass erase, and connect then ?&lt;/P&gt;&lt;P&gt;Perhaps your code reconfigures and uses the JTAG/SWD pins of the MCU.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 08:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682954#M53350</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2023-07-06T08:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: SWD stopped working on LPC 54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682960#M53352</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Not sure if your SWD is secured by&amp;nbsp;&lt;SPAN&gt;ECRP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Attached please find LPC546xxMassErase.scp.&lt;/P&gt;
&lt;P&gt;Assume that you are also using MCUXpressoIDE_11.4.0_6237 and you have also installed it in C:\nxp\MCUXpressoIDE_11.4.0_6237.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Please place LPC546xxMassErase.scp to C:\nxp\MCUXpressoIDE_11.4.0_6237\ide\binaries\Scripts.&lt;/LI&gt;
&lt;LI&gt;Open a Command Prompt window.&lt;/LI&gt;
&lt;LI&gt;Change the path to C:\nxp\MCUXpressoIDE_11.4.0_6237\ide\binaries.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1688631182832.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231070iE56B82A593BF0088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1688631182832.jpeg" alt="ZhangJennie_0-1688631182832.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Execute the command of redlinkserv -commandline.&lt;/LI&gt;
&lt;LI&gt;After the execution of the command of redlinkserv -commandline, you should see redlink&amp;gt; prompt.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_1-1688631182859.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231071i82FAA3AC84A6894B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_1-1688631182859.jpeg" alt="ZhangJennie_1-1688631182859.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Execute the command of load "C:\nxp\MCUXpressoIDE_11.4.0_6237\ide\binaries\Scripts\LPC546xxMassErase.scp".&lt;/LI&gt;
&lt;LI&gt;After the execution of the command of load "C:\nxp\MCUXpressoIDE_11.4.0_6237\ide\binaries\Scripts\LPC546xxMassErase.scp", you should see Loading " LPC546xxMassErase.scp".&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_2-1688631182888.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231072i50B708AAA4818FB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_2-1688631182888.jpeg" alt="ZhangJennie_2-1688631182888.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Execute the command of run.&lt;/LI&gt;
&lt;LI&gt;After the execution of the command of run, you should see messages below.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_3-1688631182984.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/231073iCBFA549A720D57EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_3-1688631182984.jpeg" alt="ZhangJennie_3-1688631182984.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jennie&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 08:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWD-stopped-working-on-LPC-54608/m-p/1682960#M53352</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2023-07-06T08:29:33Z</dc:date>
    </item>
  </channel>
</rss>

