<?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 Unable to connect to LPC802 via SWD using ST-Link and OpenOCD in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2333459#M59455</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to program an &lt;STRONG&gt;LPC802M001JDH20&lt;/STRONG&gt; mounted on a TSSOP20 breakout board using &lt;STRONG&gt;ST-Link V2&lt;/STRONG&gt; and &lt;STRONG&gt;OpenOCD (0.12.0)&lt;/STRONG&gt; on Linux, but I cannot connect to the target.&lt;/P&gt;&lt;H3&gt;Hardware Setup&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;MCU: LPC802M001JDH20&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Debugger: ST-Link V2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Supply: 3.3 V from stlink&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Connections:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LPC802 Pin Connection&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pin 15 (VDD)&lt;/TD&gt;&lt;TD&gt;3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 16 (VSS)&lt;/TD&gt;&lt;TD&gt;GND&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 18 (VREFP)&lt;/TD&gt;&lt;TD&gt;3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 7 (SWCLK)&lt;/TD&gt;&lt;TD&gt;ST-Link SWCLK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 8 (SWDIO)&lt;/TD&gt;&lt;TD&gt;ST-Link SWDIO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 5 (RESET)&lt;/TD&gt;&lt;TD&gt;10k pull-up to 3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Target voltage detected by ST-Link: &lt;STRONG&gt;~3.26 V&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;OpenOCD Command&lt;/H3&gt;&lt;PRE&gt;openocd -f interface/stlink.cfg -f target/lpc8xx.cfg&lt;/PRE&gt;&lt;H3&gt;Initial Output&lt;/H3&gt;&lt;P&gt;Previously I received:&lt;/P&gt;&lt;PRE&gt;Warn : UNEXPECTED idcode: 0x0bc11477
Error: expected 1 of 1: 0x0bb11477&lt;/PRE&gt;&lt;P&gt;After setting the TAP ID:&lt;/P&gt;&lt;PRE&gt;openocd -f interface/stlink.cfg -c "set CPUTAPID 0x0bc11477" -f target/lpc8xx.cfg&lt;/PRE&gt;&lt;P&gt;I now get:&lt;/P&gt;&lt;PRE&gt;Error: init mode failed (unable to connect to the target)&lt;/PRE&gt;&lt;H3&gt;Observations&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When OpenOCD runs, an LED connected to a GPIO (pin 4 on tssop-20) briefly lights and then turns off.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;RESET pin measures about &lt;STRONG&gt;~1.3 V instead of 3.3 V&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Voltage between VDD (pin 15) and RESET (pin 5) is about &lt;STRONG&gt;2 V&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The MCU has never been programmed before (new chip).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Questions&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Should the RESET pin normally sit at VDD internally, or is an external pull-up mandatory?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could the abnormal RESET voltage indicate the chip is stuck in reset?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there anything else required for minimal LPC802 SWD debugging (boot pins, ISP mode, etc.)?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help would be appreciated. Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2026 10:34:26 GMT</pubDate>
    <dc:creator>sarveshp17</dc:creator>
    <dc:date>2026-03-16T10:34:26Z</dc:date>
    <item>
      <title>Unable to connect to LPC802 via SWD using ST-Link and OpenOCD</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2333459#M59455</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to program an &lt;STRONG&gt;LPC802M001JDH20&lt;/STRONG&gt; mounted on a TSSOP20 breakout board using &lt;STRONG&gt;ST-Link V2&lt;/STRONG&gt; and &lt;STRONG&gt;OpenOCD (0.12.0)&lt;/STRONG&gt; on Linux, but I cannot connect to the target.&lt;/P&gt;&lt;H3&gt;Hardware Setup&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;MCU: LPC802M001JDH20&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Debugger: ST-Link V2&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Supply: 3.3 V from stlink&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Connections:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LPC802 Pin Connection&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pin 15 (VDD)&lt;/TD&gt;&lt;TD&gt;3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 16 (VSS)&lt;/TD&gt;&lt;TD&gt;GND&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 18 (VREFP)&lt;/TD&gt;&lt;TD&gt;3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 7 (SWCLK)&lt;/TD&gt;&lt;TD&gt;ST-Link SWCLK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 8 (SWDIO)&lt;/TD&gt;&lt;TD&gt;ST-Link SWDIO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pin 5 (RESET)&lt;/TD&gt;&lt;TD&gt;10k pull-up to 3.3 V&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Target voltage detected by ST-Link: &lt;STRONG&gt;~3.26 V&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;OpenOCD Command&lt;/H3&gt;&lt;PRE&gt;openocd -f interface/stlink.cfg -f target/lpc8xx.cfg&lt;/PRE&gt;&lt;H3&gt;Initial Output&lt;/H3&gt;&lt;P&gt;Previously I received:&lt;/P&gt;&lt;PRE&gt;Warn : UNEXPECTED idcode: 0x0bc11477
Error: expected 1 of 1: 0x0bb11477&lt;/PRE&gt;&lt;P&gt;After setting the TAP ID:&lt;/P&gt;&lt;PRE&gt;openocd -f interface/stlink.cfg -c "set CPUTAPID 0x0bc11477" -f target/lpc8xx.cfg&lt;/PRE&gt;&lt;P&gt;I now get:&lt;/P&gt;&lt;PRE&gt;Error: init mode failed (unable to connect to the target)&lt;/PRE&gt;&lt;H3&gt;Observations&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When OpenOCD runs, an LED connected to a GPIO (pin 4 on tssop-20) briefly lights and then turns off.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;RESET pin measures about &lt;STRONG&gt;~1.3 V instead of 3.3 V&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Voltage between VDD (pin 15) and RESET (pin 5) is about &lt;STRONG&gt;2 V&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The MCU has never been programmed before (new chip).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Questions&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Should the RESET pin normally sit at VDD internally, or is an external pull-up mandatory?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could the abnormal RESET voltage indicate the chip is stuck in reset?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there anything else required for minimal LPC802 SWD debugging (boot pins, ISP mode, etc.)?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help would be appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 10:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2333459#M59455</guid>
      <dc:creator>sarveshp17</dc:creator>
      <dc:date>2026-03-16T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to LPC802 via SWD using ST-Link and OpenOCD</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2335649#M59466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260739"&gt;@sarveshp17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LPC802 cannot be reached by SWD because the RESET pin is not pulled high. The RESET pin has no internal pull‑up, so it should have an external 10 kΩ pull‑up to 3.3 V. Your measured RESET voltage (~1.3 V) means the MCU is stuck in reset, so SWD cannot connect.&lt;/P&gt;
&lt;P&gt;You can refer to the lpcxpresso804&amp;nbsp;schematic.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2026-03-19_15-35-34.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/379758i8C994088FC8AF635/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snipaste_2026-03-19_15-35-34.png" alt="Snipaste_2026-03-19_15-35-34.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 07:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2335649#M59466</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-19T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to LPC802 via SWD using ST-Link and OpenOCD</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2336760#M59473</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt; for your super fast guidance!&lt;/P&gt;&lt;P&gt;After adding the 10 kΩ pull-up to the RESET pin, the chip is now successfully detected by OpenOCD.&lt;/P&gt;&lt;P&gt;However, I’m still facing another issue. When I try to connect GDB through OpenOCD, or when I attempt to retrieve flash information via telnet, OpenOCD reports an “unknown Part ID” and then stops responding. I’ve also noticed that the Part ID value is inconsistent across attempts.&lt;/P&gt;&lt;P&gt;I’ve attached the relevant screenshots for reference.&lt;/P&gt;&lt;P&gt;Is there something else I might be missing?&lt;BR /&gt;&lt;BR /&gt;Thank you !!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 16:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2336760#M59473</guid>
      <dc:creator>sarveshp17</dc:creator>
      <dc:date>2026-03-20T16:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to LPC802 via SWD using ST-Link and OpenOCD</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2340698#M59483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260739"&gt;@sarveshp17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the remaining issue seems to be unstable SWD signals or the RESET line being pulled low unintentionally. I think you can&amp;nbsp; re-check the RESET wiring, shorten SWD cables, lower the SWD clock , and enable “connect under reset”.&lt;/P&gt;
&lt;P&gt;Can&amp;nbsp; you share the SWD schematic？&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 03:13:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-connect-to-LPC802-via-SWD-using-ST-Link-and-OpenOCD/m-p/2340698#M59483</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-27T03:13:10Z</dc:date>
    </item>
  </channel>
</rss>

