<?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 Q: debug through JTAG not working in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578093#M23488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Thu Apr 14 19:53:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to debug LPC1769 in gdb command line by both jtag and swd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1, using swd command line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -0&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case debug process goes ok;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2, using jtag command line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -0&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hidjtag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;strangely, sometimes after this command, target stops at PC:0x1fff0080, which seems to in boot ROM of LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;more strangely, I could not download axf file into flash, the command&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load adc_semihosting.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;comes with error message like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0x47fc lma 0x0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x204 lma 0x47fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ps: (&amp;nbsp; 0) Page&amp;nbsp; 0 at 00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nc: nSRST assert (if available)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nc: Executing in bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error finishing flash operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the download error only occurs when pc stops at 0x1fff00xx, but problem mentioned in the previous post is always there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have no clue about it, please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:39:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:39:16Z</dc:date>
    <item>
      <title>debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578092#M23487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Thu Apr 14 19:38:28 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using lpcXpresso to debug LPC1769. By default, I can debug it through SWD. After I set debug configuration following link&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/ConnectingToJtag&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got error in lpcXpresso IDE like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Target reports errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reason:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;15: Target error from read memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address overrun : unknown cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I tried to debug in gdb command line with following commands:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set remotetimeout 60000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -4&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hidjtag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set mem inaccessible-by-default off&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mon ondisconnect nochange&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load a.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mon semihost enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;seems ll these commands work right, but afterward I could not insert any breakpoints or continue. The problematic GDB packages as following(both breakpoint and hard breakpoint tried):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) b main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sending packet: $m45e,2#99...Ack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Packet received: E22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Continuing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sending packet: $Z1,45e,2#e3...Ack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Packet received: E22&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, if i debug use command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -4&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then everything is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, any tips? also I might be talking gibberish, please forgive if so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578092#M23487</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578093#M23488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Thu Apr 14 19:53:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to debug LPC1769 in gdb command line by both jtag and swd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1, using swd command line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -0&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case debug process goes ok;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2, using jtag command line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target extended-remote | ./crt_emu_cm3_nxp -g -0&amp;nbsp; -pLPC1768&amp;nbsp; -wire=hidjtag&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;strangely, sometimes after this command, target stops at PC:0x1fff0080, which seems to in boot ROM of LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;more strangely, I could not download axf file into flash, the command&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load adc_semihosting.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;comes with error message like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0x47fc lma 0x0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x204 lma 0x47fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ps: (&amp;nbsp; 0) Page&amp;nbsp; 0 at 00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nc: nSRST assert (if available)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nc: Executing in bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error finishing flash operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the download error only occurs when pc stops at 0x1fff00xx, but problem mentioned in the previous post is always there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have no clue about it, please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578093#M23488</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578094#M23489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Thu Apr 14 20:36:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You may get asked this question sooner or later:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of LPCXpresso are you using and on what operating system?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578094#M23489</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578095#M23490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Thu Apr 14 20:48:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;firstly sorry about the lacking of information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso v3.6.3 [Build 317] [08/04/2011] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in Windows 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578095#M23490</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578096#M23491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Thu Apr 14 21:06:51 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: can.finner&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;...in Windows 7.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No apology needed.&amp;nbsp; Windows 7 32-bit or 64-bit?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did see, in some other posts, that jtag was not supported with the LPC-Link.&amp;nbsp; That may be old information.&amp;nbsp; CodeRedSupport will probably have to answer your question about debugging with jtag.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578096#M23491</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578097#M23492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Thu Apr 14 23:03:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, the Windows 7 32 bit operating system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578097#M23492</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578098#M23493</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 Fri Apr 15 00:18:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am curious - why JTAG? I thought SWD was the better interface?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578098#M23493</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578099#M23494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by can.finner on Fri Apr 15 00:24:58 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: TheFallGuy&lt;/STRONG&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am curious - why JTAG? I thought SWD was the better interface?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SWD does satisfy the needs. Well, I just gave the jtag a try, which should work according to the documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578099#M23494</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: debug Q: debug through JTAG not working</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578100#M23495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Apr 15 08:34:33 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this. We'll take a look and get back to the forum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/debug-Q-debug-through-JTAG-not-working/m-p/578100#M23495</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:39:20Z</dc:date>
    </item>
  </channel>
</rss>

