<?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 LPC2214 JTAG Issue / Thoughts? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2214-JTAG-Issue-Thoughts/m-p/546344#M13240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by birdbren on Tue Mar 25 11:11:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have an issue as outlined below, is there anything that could cause the JTAG connection to be lost with this code sequence?&amp;nbsp; The only thing I can think of is the CRP Register (Flash location 0x000001FC) but that doesn't seem to be happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I have a question about the LPC2214, and the LPC2294. We are using IAR's Embedded Workbench. I copied a working project to a new directory changed some settings, and inadvertently included the following under the debugger options. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$PROJ_DIR$\config\ram.mac &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This file contains the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execUserPreload() &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{ // __writeMemory32(Value,&amp;nbsp; Location, Type); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00000, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00004, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00008, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE0000C, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x0E6149E4, 0xE002C014, "Memory");&amp;nbsp; // PINSEL2: CS0, CS1, CS2, OE, WE, BLS0..3, D0..31, A2..23, JTAG &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it appears to me that by including this file which changes memory location&amp;nbsp; 0xE002C014 with the value 0x0E6149E4 I have adversely affected the JTAG pins. This is what IAR support is telling me that this file would do. Is it possible that I may have moved the JTAG pins to a different port (PORT 2?). Currently I can not program the chip, and I tried it on two different boards. Both boards worked fine until I tried to download my project. All that I did was to change the program settings in IAR and tried to download. Is there a way to reset the chip? By the way one of the boards is an Olimex LPC-H22xx. The project was copied from a working Blinky project from Olimex. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:49:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:49:47Z</dc:date>
    <item>
      <title>LPC2214 JTAG Issue / Thoughts?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2214-JTAG-Issue-Thoughts/m-p/546344#M13240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by birdbren on Tue Mar 25 11:11:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have an issue as outlined below, is there anything that could cause the JTAG connection to be lost with this code sequence?&amp;nbsp; The only thing I can think of is the CRP Register (Flash location 0x000001FC) but that doesn't seem to be happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I have a question about the LPC2214, and the LPC2294. We are using IAR's Embedded Workbench. I copied a working project to a new directory changed some settings, and inadvertently included the following under the debugger options. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$PROJ_DIR$\config\ram.mac &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This file contains the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execUserPreload() &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{ // __writeMemory32(Value,&amp;nbsp; Location, Type); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00000, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00004, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE00008, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x20003CE3, 0xFFE0000C, "Memory"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __writeMemory32(0x0E6149E4, 0xE002C014, "Memory");&amp;nbsp; // PINSEL2: CS0, CS1, CS2, OE, WE, BLS0..3, D0..31, A2..23, JTAG &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it appears to me that by including this file which changes memory location&amp;nbsp; 0xE002C014 with the value 0x0E6149E4 I have adversely affected the JTAG pins. This is what IAR support is telling me that this file would do. Is it possible that I may have moved the JTAG pins to a different port (PORT 2?). Currently I can not program the chip, and I tried it on two different boards. Both boards worked fine until I tried to download my project. All that I did was to change the program settings in IAR and tried to download. Is there a way to reset the chip? By the way one of the boards is an Olimex LPC-H22xx. The project was copied from a working Blinky project from Olimex. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2214-JTAG-Issue-Thoughts/m-p/546344#M13240</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2214 JTAG Issue / Thoughts?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2214-JTAG-Issue-Thoughts/m-p/546345#M13241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by birdbren on Tue Mar 25 14:23:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please ignore this post, the issue was in changing the PINSEL2 register which turned of the JTAG ability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning: Use read-modify-write operation when accessing PINSEL2 register. Accidental &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;write of 0 to bit 2 and/or bit 3 results in loss of debug and/or trace functionality! Changing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of either bit 4 or bit 5 from 1 to 0 may cause an incorrect code execution! &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2214-JTAG-Issue-Thoughts/m-p/546345#M13241</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:49:47Z</dc:date>
    </item>
  </channel>
</rss>

