<?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 Debugger hangs when setting CCLKCFG  register in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550079#M11259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mikael.tangert on Thu Jul 29 00:34:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When setting the clockdivider in the system_LPC17xx.c in the systemInit routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"LPC_SC-&amp;gt;CCLKCFG&amp;nbsp;&amp;nbsp; = CCLKCFG_Val;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup Clock Divider&amp;nbsp; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger hangs with error like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 15: Target error from register access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot complete transaction even after slowing speed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The clksrc is still IRC and the CCLKCFG_Val is 3 so&amp;nbsp; I think the new CPU clock will temporarily be 1 Mhz. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The program works fine when freerunning without jtag debugg &amp;amp; LPC-link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Win XP SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Build id: LPCXpresso v3.4.0 [Build 187] [23/06/2010] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.crt.lpcxpresso&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC-link from LPC Xpresso 1343 board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTAG interface from LPC-link to&amp;nbsp; LPC1752 without JTAG-rtckl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:07:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:07:46Z</dc:date>
    <item>
      <title>Debugger hangs when setting CCLKCFG  register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550079#M11259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mikael.tangert on Thu Jul 29 00:34:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When setting the clockdivider in the system_LPC17xx.c in the systemInit routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"LPC_SC-&amp;gt;CCLKCFG&amp;nbsp;&amp;nbsp; = CCLKCFG_Val;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup Clock Divider&amp;nbsp; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger hangs with error like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 15: Target error from register access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot complete transaction even after slowing speed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The clksrc is still IRC and the CCLKCFG_Val is 3 so&amp;nbsp; I think the new CPU clock will temporarily be 1 Mhz. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The program works fine when freerunning without jtag debugg &amp;amp; LPC-link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Win XP SP2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Build id: LPCXpresso v3.4.0 [Build 187] [23/06/2010] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.crt.lpcxpresso&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC-link from LPC Xpresso 1343 board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTAG interface from LPC-link to&amp;nbsp; LPC1752 without JTAG-rtckl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550079#M11259</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger hangs when setting CCLKCFG  register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550080#M11260</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 Thu Jul 29 01:24:58 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When you change the clock speed and/or oscillator source, you are&amp;nbsp; also changing the speed of the debug connection. As you are stepping the&amp;nbsp; code when this happens, the debugger is no longer able to connect, as&amp;nbsp; you have changed the connection 'under it's feet'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way around this is to set a breakpoint after you change the speed&amp;nbsp; and RUN to the breakpoint. The debugger will then resync the debug&amp;nbsp; connection, when the breakpoint is hit. This is not possible when single&amp;nbsp; stepping.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550080#M11260</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger hangs when setting CCLKCFG  register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550081#M11261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mikael.tangert on Thu Jul 29 07:22:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks it works now so I'm satisfied for the moment. But in fact I was suspicious to the under the feet issue and tried to set a breakpoint some instructions ahead before but I left it since It doesn't helped then and since I'm really not sure of what going on in every part.&amp;nbsp; However now I'n able to reset the program and single step through the clock initialisation and also look onto the Sysctl/peripheral variable in the monitors window changing from 0 to 3 (i.e. div by 1 resp 4).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550081#M11261</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger hangs when setting CCLKCFG  register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550082#M11262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mikael.tangert on Thu Jul 29 07:40:35 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to be more exakt...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I checked what differ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The debugger doesn't hang when going from cpu clk division by 1 to 3. (I had changed the code when setting higher CPU freq)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The debugger still hangs when going from cpu clk division by 1 to 4. (the original situation when I reported this morning)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-hangs-when-setting-CCLKCFG-register/m-p/550082#M11262</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:48Z</dc:date>
    </item>
  </channel>
</rss>

