<?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: Debug access to LPC 1768 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530505#M2016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Fri Mar 15 14:22:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a jumper to draw P2.10 to GND, so it's definitely low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a program executing flawlessly on the chip, so how can the chip be dead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:07:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:07:18Z</dc:date>
    <item>
      <title>Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530503#M2014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Fri Mar 15 13:51:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just ran into the "Target marked as not debuggable" problem. The other day it was working flawlessly, but today somehow it started rejecting me. Don't know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a custom LPC 1768 board, LPC-Link, EA 10-20 pin JTAG converter, and the lpcxpresso IDE 5.012 .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After doing some research, I found this &lt;/SPAN&gt;&lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/MarkedNotDebuggable"&gt;article&lt;/A&gt;&lt;SPAN&gt; quite helpful. Checking the cause of my problem, this item seems the most likely issue, even if I do not know how this could have happened:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;The target MCU has been put into a flash protection mode. &lt;BR /&gt;[LIST]&lt;BR /&gt;[*]For example, with NXP parts, this might mean that you have locked the part via &lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/CodeReadProtect"&gt;CRP&lt;/A&gt; - you may only be able to recover this using FlashMagic over a UART.&lt;BR /&gt;[/LIST]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;So I tried the trick with the ISP mode, but it doesn't work. The MC seems to boot into ISP mode (and if I remove the P2.10 to GND connection the original image is booting again). However, I do not receive the char for the autobaud that's required for the FlashMagic tool. Even using a Oscilloscope (connected RX, TX, GDN) does not show anything (besides a constant voltage level of 2.2 V). I've also checked the MC pin to pin header connection, that's alright, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530503#M2014</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530504#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Mar 15 14:06:10 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Don't remove GND from ISP pin before you've successfully flashed your chip again ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 If UART ISP isn't working, your chip is dead :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530504#M2015</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530505#M2016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Fri Mar 15 14:22:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a jumper to draw P2.10 to GND, so it's definitely low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a program executing flawlessly on the chip, so how can the chip be dead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530505#M2016</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530506#M2017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Mar 15 14:41:39 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you've a working UART0 connection and a working UART&amp;lt;-&amp;gt;whatever converter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you are sending a 9600 bps '?' to your LPC?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530506#M2017</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530507#M2018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Fri Mar 15 15:53:11 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I managed to use the FlashMagic tool :).&amp;nbsp; I confused the RX/TX lines between USB converter and UART0 &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, after erasing the flash, the lpcxpresso IDE is still not capable to program the MC. I still get the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Target marked as not debuggable.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;I've checked with the FlashMagic tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]CRP are disabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]All flash banks are cleared&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What else could be the cause? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ps: debug log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=3]&lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPCXpresso Debug Driver v5.0 (Nov 22 2012 08:59:27 build 1083)
Looked for chip XML file in /opt/codered/lpcxpresso5012/lpcxpresso/bin/LPC1768.xml
Looked for vendor directory XML file in /opt/codered/lpcxpresso5012/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in /opt/codered/lpcxpresso5012/lpcxpresso/bin/crt_directory.xml
02: Failed on connect: Ep(01). Target marked as not debuggable.
Emu(0): Connected. Was: None. DpID:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EDB6. Info: LPCLINK_1_1&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530507#M2018</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530508#M2019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Mar 15 16:08:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've restarted everything (PC, LPC-link, target...) and FlashMagic is working that sounds like a SWD connection problem or a general hardware problem (power supply...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you enable Vector catch already?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530508#M2019</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530509#M2020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Fri Mar 15 23:17:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Still not working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]I've restarted everything, but the problem remains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Vector catch is enabled right from the start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]FlashMagic can read out and erase the MC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]The program on the chip was working fine (until I erased the flash, of course). Therefore, I doubt there is a power issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Tested tool chain, LPC-Link, and program with the 1769 side of the lpcxpresso board: works fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Edit:[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I've also used the OpenOCD (with my tiny-jtagkey dongle). No luck either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Edit2:[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I generated a hex from the axf and programmed it successfully using FlashMagic. However, the JTAG interface is not functional. Is there any way to make it working again or is this a permanent failure?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]PS[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Open On-Chip Debugger 0.4.0 (2010-10-08-15:44)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://"&gt;http://openocd.berlios.de/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;debug_level: 0&lt;BR /&gt;jtag_nsrst_delay: 200&lt;BR /&gt;jtag_ntrst_delay: 200&lt;BR /&gt;trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain&lt;BR /&gt;500 kHz&lt;BR /&gt;trst_only srst_pulls_trst trst_push_pull&lt;BR /&gt;Error: JTAG scan chain interrogation failed: all zeroes&lt;BR /&gt;Error: Check JTAG interface, timings, target power, etc.&lt;BR /&gt;Error: JTAG scan chain interrogation failed: all zeroes&lt;BR /&gt;Error: Check JTAG interface, timings, target power, etc.&lt;BR /&gt;Command handler execution failed&lt;BR /&gt;Error: JTAG scan chain interrogation failed: all zeroes&lt;BR /&gt;Error: Check JTAG interface, timings, target power, etc.&lt;BR /&gt;error: -100&lt;BR /&gt;Command handler execution failed&lt;BR /&gt;make: *** [program-jtagkey] Error 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530509#M2020</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530510#M2021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Sat Mar 16 09:00:57 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you connect all SWD lines including reset? Since lpcxpresso does not use JTAG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530510#M2021</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530511#M2022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Mon Mar 18 03:43:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your application using some of the SWD pins for other functions? Have you tried erasing the flash image (using FlashMagic) and/or booting into ISP mode, to see if you still have the same problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530511#M2022</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Debug access to LPC 1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530512#M2023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hellospencer on Wed Mar 20 09:11:16 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks everybody for your help. It's still not working ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Did you connect all SWD lines including reset? Since lpcxpresso does not use JTAG &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. I beeped&amp;nbsp; through the pins and the 20-pin JTAG header, to check if a soldering point is broken. Everything worked. Reset (pin 17) is connected and works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Is your application using some of the SWD pins for other functions? Have&amp;nbsp; you tried erasing the flash image (using FlashMagic) and/or booting&amp;nbsp; into ISP mode, to see if you still have the same problem? &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope, SWD pins are not multiplexed on the LPC 1768. This interface uses pins 1-5, 100, and 17. I erased with FlashMagic the entire chip and checked the CRP flags. Problem remains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe there is something going on inside the chip package. When can get back to the board, I'll try to monitor the swd pins with an oscilloscope, maybe this gives me some clue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, I'll keep you updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-access-to-LPC-1768/m-p/530512#M2023</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:22Z</dc:date>
    </item>
  </channel>
</rss>

