<?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: Clock problems during debug in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/596001#M22933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Wed Jan 21 13:46:07 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately in our debug configuration (GDB hardware debugging) this option is not available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:23:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:23:53Z</dc:date>
    <item>
      <title>Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595975#M22907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 20 13:58:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello engineers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We trying to debug/program a lpc1114/333 but there is something wrong and we are out of ideas. We use the simple led blinky example. When programming the chip with SWD everything seams to be ok even after verifying. When we start the debug session in LPCXpresso the status change in running but the debug led is not blinking. When pauze the debugging we can't step through the program. when switching the power off and on the led starts to blink. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-The bootloader pin is high&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use the internal oscillator&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------system_LPC11xx.c------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define CLOCK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSCLK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSOSC_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSOSCCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define WDTOSC_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define WDTOSCCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000000A0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLLCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLL_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLLCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000023&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define MAINCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSAHBCLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define AHBCLKCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0001005F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SSP0CLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define UARTCLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SSP1CLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595975#M22907</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595976#M22908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Thu Nov 20 14:10:02 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi justmakeit,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using the blinky example from our LPCOpen software platform? Our blinky examples tend to use an interrupt to toggle the LED while the MCU is in a while(1) loop going to sleep, which might explain why there are no lines of code for you to step through. Have you tried putting a break point in the beginning of the interrupt handler to ensure the MCU is reaching that portion of the code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595976#M22908</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595977#M22909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 20 14:27:07 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the fast reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use the example from the LPCopen platform. We tried to place a breakpoint at the systemcoreclockupdate(); function. But he wont reach the break point or blink the leds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595977#M22909</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595978#M22910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 20 14:31:38 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;We use the internal oscillator&lt;BR /&gt;....&lt;BR /&gt;#define SYSPLLCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [color=#f00]0x00000001[/color]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595978#M22910</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595979#M22911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 20 14:44:07 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We changed this value to zero. But still&amp;nbsp; there is no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we also changed this line in the main&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Config CLKOUT, mostly used for debugging. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CLKOUT_Setup( CLKOUTCLK_SRC_IRC_OSC );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 &amp;amp;= ~0x07;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 |= 0x01;/* CLK OUT */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We measured the clock output with our scope. but the signal is 1V.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595979#M22911</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595980#M22912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 20 14:56:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you comment out System-OSC Power up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where's your system_LPC11xx.c? In CMSIS library? Did you rebuild everthing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try to use IRC without PLL already?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595980#M22912</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595981#M22913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 20 15:09:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/* Config CLKOUT, mostly used for debugging. */&lt;BR /&gt;&amp;nbsp; CLKOUT_Setup( CLKOUTCLK_SRC_IRC_OSC );&lt;BR /&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 &amp;amp;= ~0x07;&lt;BR /&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 |= 0x01;/* CLK OUT */&lt;BR /&gt;&lt;BR /&gt;We measured the clock output with our scope. but the signal is 1V.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If CLKOUTDIV is 0 (default) CLKOUT is disabled&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &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;#ifdef CLKOUT
 //enable CLKOUT
 LPC_IOCON-&amp;gt;PIO0_1= (1&amp;lt;&amp;lt;0);
// select clock 0 IRC, 1 System oscillator, 2 Watchdog, 3 Main clock
 LPC_SYSCON-&amp;gt;CLKOUTCLKSEL = 0;
// select clock divider
 LPC_SYSCON-&amp;gt;CLKOUTDIV = 10;//CLKOUT Divider = 10
// Enable CLKOUT
 LPC_SYSCON-&amp;gt;CLKOUTUEN = 0;
 LPC_SYSCON-&amp;gt;CLKOUTUEN = 1;//
#endif&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595981#M22913</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595982#M22914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 20 15:14:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use the CMSISv2p00_LPC11xx imported in our workspace and rebuild everything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We changed the defines as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define CLOCK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSCLK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSOSC_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSOSCCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define WDTOSC_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define WDTOSCCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000000A0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLLCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLL_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSPLLCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000023&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define MAINCLKSEL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SYSAHBCLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define AHBCLKCTRL_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0001005F&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SSP0CLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define UARTCLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SSP1CLKDIV_Val&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the SystemInit() in the startupfile will not bypass the system oscillator and the main oscillator is configured as internal RC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the main() we configure the CLKOUT to be the CLKOUT_SRC_IRC_OSC (so we can measure the frequence at the CLKOUT pin?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main (void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; uint32_t interval;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Config CLKOUT, mostly used for debugging. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CLKOUT_Setup( CLKOUTCLK_SRC_IRC_OSC );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 &amp;amp;= ~0x07;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1 |= 0x01;/* CLK OUT */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and we changed the LED port/pin to match the LED in our hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;each time we start a debug session, the proces starts running but we don't see the LED blink.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when we power off and power back on the hardware without programming the LED goes on but wont blink. (tested with different LEDs so the programming seems to work)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595982#M22914</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595983#M22915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 20 15:43:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure which code you are using in detail&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be a good idea to copy system_LPC11xx.c in your project SRC directory (to use it local) and export / post this project... &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595983#M22915</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595984#M22916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 27 12:18:05 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the late respons, we only work at this project every thursday evening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached the sourcode: the blinky project and CMSIS library containing the system_LPC11xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We only tried to change some configurations to match our hardware. (LPC1114/333 with only internal crystal)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point the debug freezes when trying to start _main at line 313 of cr_startup_lpc11.c and we think this is because of clock configurations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595984#M22916</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595985#M22917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 27 13:38:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;Attached the sourcode: the blinky project and CMSIS library containing the system_LPC11xx.c&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After copying system_LPC11xx.c in your blinky/src folder it's working here without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your configuration is confusing, if you don't want to use PLL you can switch it off...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what 'debug freezes when trying to start _main at line 313' is in detail...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595985#M22917</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595986#M22918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 27 13:54:49 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We have the CMSISv2p00_LPC11xx project added as reference to the Blinky project and added both to the workspace so we don't have to copy the system_LPC11xx.c to the Blinky project if I'm right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we changed the configuration a bit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- disabled SYSOSC_SETUP because we only want to use IRC clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- MAINCLKSEL is still the IRC clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we have a 2K2 connected between P0_1 and VCC to prevent the IC from going into bootloader mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P0_1 is also configured as CLKCOUT for the IRC clock but we only measure a constant 3V3 at this pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we start debugging in LPC Expresso the program holds and shows SIGTRAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached picture.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595986#M22918</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595987#M22919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 27 14:34:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;When we start debugging in LPC Expresso the program holds and shows SIGTRAP.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use Single Step to line 106... There's your problem starting...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid problem you should comment out CLKOUT setting and all timers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to run a very simple program, just toggling Pins...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595987#M22919</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595988#M22920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 27 15:17:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We just found out that programming is not the issue, after programming and starting debug, the debug freezes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When we disconnect the power and programmer and connect this again the Blinky program starts and the LEDs light up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;each change in out program works after stopping debug and reconnecting the power and programmer to the IC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we now know the code is correct but don't understand why the debuging is freezing the IC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595988#M22920</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595989#M22921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 27 15:21:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;We just found out that programming is not the issue...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's a hardware problem and time to check your schematic / board...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595989#M22921</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595990#M22922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Nov 27 15:40:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;True, before we start searching to a difference between schematic and board, is our schematic for use with SWD debugging ok?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is for example the SWO pin needed for debugging?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595990#M22922</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595991#M22923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 27 15:57:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: justmakeit&lt;/STRONG&gt;&lt;BR /&gt;True, before we start searching to a difference between schematic and board, is our schematic for use with SWD debugging ok?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SWO isn't necessary...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a simple SWD connection with GND / SWCLK / SWDIO / Reset without problems...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if you are using a Link or Link2...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your SWD connection is correct, but I would recommend to use 10k pull-ups at PIO0_1 (ISP) and Reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595991#M22923</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595992#M22924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Sat Nov 29 06:13:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The 10K at PIO0_1 we already added afterwards, we can increase the 2K2 of the reset pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 10K required at the ISP pin we learned the hard way in a previous project after days of searching :P&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the feedback, we start to get a good idea of the problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595992#M22924</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595993#M22925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by justmakeit on Thu Dec 11 13:51:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We just soldered a second PCB, this time with an external 12MHz crystal attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We started with a fresh Blinky project and didn't change a single line of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the same problems occur:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Programming seems to go ok but again when the debugging starts a SIGTRAP message occurs and the CHIP doens't do anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Measuring at both the CLK pins shows a flat line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After powering off and on of the supply power we measure a clean 12MHz on the clock pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See attached images for our debug config and the SIGTRAP message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595993#M22925</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clock problems during debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595994#M22926</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 Thu Dec 11 14:03:43 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which debug probe are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like your code has taken an exception during startup code (0xfffffff9 is the stack marker for an exception handler). Suggest you set the initial breakpoint on ResetISR. And single step to find out what is causing the exception.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Clock-problems-during-debug/m-p/595994#M22926</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:23:49Z</dc:date>
    </item>
  </channel>
</rss>

