<?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: LPC2368 Clocking / PLL configuration in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Clocking-PLL-configuration/m-p/551312#M14174</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 Oct 25 14:39:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to boot the device into ISP mode. See this Code Red FAQ for more information:&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%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FDebugAccessChip" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:52:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:52:21Z</dc:date>
    <item>
      <title>LPC2368 Clocking / PLL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Clocking-PLL-configuration/m-p/551311#M14173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stazo on Fri Oct 25 07:05:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After flashing my new version of Firmware for debugging, where I only changed the clock settings, I've lost the JTAG-connectivity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Error: JTAG scan chain interrogation failed: all zeroes
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to debug with the same Hardware/Software setup before, so the target power and connection should be ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since i changed the clock settings I checked the JTAG clock speed, but it is 500kHz and this is ok for the IRC(4MHz) and my clock-settings(20MHz). (&amp;lt; 1/6 of system-clock)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made complete powerdown for the MCU and the debugger so the new bootup should start with IRC and only when executing my code the clock-settings will be changed. Is this correct? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the access to the Embedded ICE of the chip during early bootup (what means reset -&amp;gt; halt (debug-mode)) should be unchanged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(PS: I've checked JTAG speed with oscilloscope and tried several speeds from 2kHz to 2,5MHz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that i made any persistent change with my c-code for clock setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no more ideas how to get access to the chip again. &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my source, which caused my actual MCU state:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: &lt;/SPAN&gt;&lt;I&gt;I coded this with the step-by-step PLL setup sequence from the Usermanual (UM10211-rev4.1,page59)&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp; // disconnect/disable
&amp;nbsp; SCB_PLLCON&amp;nbsp; = 0x0;
&amp;nbsp; SCB_PLLFEED = 0xaa;
&amp;nbsp; SCB_PLLFEED = 0x55;
&amp;nbsp; // configure
&amp;nbsp; CLKSRCSEL = 1; // Switch to main oscillator input (12 MHz)
&amp;nbsp; SCB_PLLCFG&amp;nbsp; = (0x2 &amp;lt;&amp;lt; 9) | 0x19; // Fcco=2*10*12/2=120 MHz
&amp;nbsp; SCB_PLLFEED = 0xaa;
&amp;nbsp; SCB_PLLFEED = 0x55;
&amp;nbsp; // enable
&amp;nbsp; SCB_PLLCON&amp;nbsp; = 0x1;
&amp;nbsp; SCB_PLLFEED = 0xaa;
&amp;nbsp; SCB_PLLFEED = 0x55;
&amp;nbsp; // wait for lock
&amp;nbsp; while (!(SCB_PLLSTAT &amp;amp; (1 &amp;lt;&amp;lt; 26)));
&amp;nbsp; // connect
&amp;nbsp; SCB_PLLCON&amp;nbsp; = 0x3;
&amp;nbsp; SCB_PLLFEED = 0xaa;
&amp;nbsp; SCB_PLLFEED = 0x55;
&amp;nbsp; // set CPU clock to 120/6 = 20 MHz
&amp;nbsp; CCLKCFG = 5;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the reason that i get no JTAG-connection?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* ADE7880 Evaluation Board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* NXP LPC2368&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Amontec JTAGkex-2P&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* openOCD 0.7.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* GNU gdb 6.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Eclipse 4.3 (Kepler)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:52:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Clocking-PLL-configuration/m-p/551311#M14173</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2368 Clocking / PLL configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Clocking-PLL-configuration/m-p/551312#M14174</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 Oct 25 14:39:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to boot the device into ISP mode. See this Code Red FAQ for more information:&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%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FDebugAccessChip" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-Clocking-PLL-configuration/m-p/551312#M14174</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:52:21Z</dc:date>
    </item>
  </channel>
</rss>

