<?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: Problem connecting via JTAG in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553064#M14509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillep2k on Fri Jun 26 15:02:48 MST 2015&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;Suggest you read this&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fregaining-debug-access" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to mention that I did read that, and browsed the forum before posting my question. I couldn't find anything helpful, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:53:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:53:06Z</dc:date>
    <item>
      <title>Problem connecting via JTAG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553061#M14506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillep2k on Fri Jun 26 11:38:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi. I'd would like some help. I've bought a J-Link Edu JTAG emulator and I am not able to connect to my board unless there's no firmware in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;My project&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The board features an LPC2387.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've connected JTAG lines nTRST, TDI, TMS, TCK and TDO to the J-Link module, plus RESET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My supply is 3.4V and I've connected it to VTref.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've added a 100K pull-down on the TCK line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All other JTAG lines have internal pull-ups on the MCU as per documentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My board's reset circuit has a 22nF capacitor to GND and a 47K pull-up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My module is a SEGGER J-Link EDU V9.30, SN 269302119. Firmware is 2015 May 22 17:20.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What does work&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can connect to my MCU using this setting if and only if no valid firmware signature is written on the flash. Then the connection from the J‑Flash program succeeds. JTAG chain is scanned and detected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From J-Flash:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Connecting ...
 - Connecting via USB to J-Link device 0
 - Target interface speed: 1334 kHz (Auto)
 - VTarget = 3.427V
 - Initializing CPU core (Init sequence) ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; - Initialized successfully
 - Target interface speed: 400 kHz (Auto)
 - CPU clock frequency: 4024 kHz (Auto detected)
 - J-Link found 1 JTAG device. Core ID: 0x4F1F0F0F (ARM7)
 - Connected successfully&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;From J-Link Commander:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;SEGGER J-Link Commander V5.00d ('?' for help)
Compiled Jun 17 2015 22:33:52
DLL version V5.00d, compiled Jun 17 2015 22:33:29
Firmware: J-Link V9 compiled May 22 2015 17:20:50
Hardware: V9.30
S/N: 269302119
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
VTarget = 3.432V
Info: TotalIRLen = 4, IRPrint = 0x01
Found 1 JTAG device, Total IRLen = 4:
 #0 Id: 0x4F1F0F0F, IRLen: 04, IRPrint: 0x1, ARM7TDMI-S Core
Found ARM with core Id 0x4F1F0F0F (ARM7)
ETM V1.2: 1 pairs addr.comp, 0 data comp, 4 MM decs, 1 counters
Target interface speed: 100 kHz
J-Link&amp;gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What does not work&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;None of this works with valid firmware loaded on the board:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;From J-Link Commander:
SEGGER J-Link Commander V5.00d ('?' for help)
Compiled Jun 17 2015 22:33:52
DLL version V5.00d, compiled Jun 17 2015 22:33:29
Firmware: J-Link V9 compiled May 22 2015 17:20:50
Hardware: V9.30
S/N: 269302119
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
VTarget = 3.438V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: TotalIRLen = 4, IRPrint = 0x01
No devices found on JTAG chain. Trying to find device on SWD.
No device found on SWD.
Trying to find device on FINE interface.
No device found on FINE interface.
Did not find any core.
Failed to identify target. Trying again with slow (4 kHz) speed.
No devices found on JTAG chain. Trying to find device on SWD.
No device found on SWD.
Trying to find device on FINE interface.
No device found on FINE interface.
Did not find any core.
No device found at all. Selecting JTAG as default target interface.&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Checks I've made and what I've found&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked I've not disabled the JTAG interface unintentionally by reading back the flash Code Read Protection (CRP) address (0x000001FC) and making sure it doesn't contain any of the defined values (I make it so it has 0xa5a5a5a5, but also tested with 0xffffffff). So, JTAG should be available on the MCU in all cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Strangely, I do not see the reset or TRST lines go low when I attempt to connect using JTAG (although reset does go low when other connections are attempted by J-Link Commander; SWD or FINE I suppose).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISP access via UART0 works fine (that's what I use to upload firmware/check flash, etc.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553061#M14506</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem connecting via JTAG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553062#M14507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillep2k on Fri Jun 26 12:30:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to add that the RTCK line has a 47K pull up and is not connected to the J-Link.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:53:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553062#M14507</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem connecting via JTAG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553063#M14508</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 Jun 26 14:54:08 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggest you read this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fregaining-debug-access" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:53:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553063#M14508</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem connecting via JTAG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553064#M14509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillep2k on Fri Jun 26 15:02:48 MST 2015&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;Suggest you read this&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fregaining-debug-access" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot to mention that I did read that, and browsed the forum before posting my question. I couldn't find anything helpful, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:53:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-connecting-via-JTAG/m-p/553064#M14509</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:53:06Z</dc:date>
    </item>
  </channel>
</rss>

