<?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>LPC MicrocontrollersのトピックLPC1769 Clock Source Select Not Working</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Clock-Source-Select-Not-Working/m-p/766790#M30852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My debugger crashes when the main oscillator is connected to the PLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SystemInit (void)&lt;BR /&gt;{&lt;BR /&gt;#if (CLOCK_SETUP) /* Clock Setup */&lt;BR /&gt; LPC_SC-&amp;gt;SCS = SCS_Val;&lt;BR /&gt; LPC_SC-&amp;gt;SCS = 0; /* Debug mode, Int. Oscillator */&lt;BR /&gt; if (SCS_Val &amp;amp; (1 &amp;lt;&amp;lt; 5)) { /* If Main Oscillator is enabled */&lt;BR /&gt; while ((LPC_SC-&amp;gt;SCS &amp;amp; (1&amp;lt;&amp;lt;6)) == 0);/* Wait for Oscillator to be ready */&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;CCLKCFG = CCLKCFG_Val; /* Setup Clock Divider */&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;PCLKSEL0 = PCLKSEL0_Val; /* Peripheral Clock Selection */&lt;BR /&gt; LPC_SC-&amp;gt;PCLKSEL1 = PCLKSEL1_Val;&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;CLKSRCSEL = CLKSRCSEL_Val; /* Select Clock Source for PLL0 */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The debugger crashes on the last line of code. I use an oscillator that generates a 12MHz clock. The schematic is shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18704i89E343523A29C0B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of why it is crashing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 22:40:32 GMT</pubDate>
    <dc:creator>alexanderwashin</dc:creator>
    <dc:date>2018-02-22T22:40:32Z</dc:date>
    <item>
      <title>LPC1769 Clock Source Select Not Working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Clock-Source-Select-Not-Working/m-p/766790#M30852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My debugger crashes when the main oscillator is connected to the PLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SystemInit (void)&lt;BR /&gt;{&lt;BR /&gt;#if (CLOCK_SETUP) /* Clock Setup */&lt;BR /&gt; LPC_SC-&amp;gt;SCS = SCS_Val;&lt;BR /&gt; LPC_SC-&amp;gt;SCS = 0; /* Debug mode, Int. Oscillator */&lt;BR /&gt; if (SCS_Val &amp;amp; (1 &amp;lt;&amp;lt; 5)) { /* If Main Oscillator is enabled */&lt;BR /&gt; while ((LPC_SC-&amp;gt;SCS &amp;amp; (1&amp;lt;&amp;lt;6)) == 0);/* Wait for Oscillator to be ready */&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;CCLKCFG = CCLKCFG_Val; /* Setup Clock Divider */&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;PCLKSEL0 = PCLKSEL0_Val; /* Peripheral Clock Selection */&lt;BR /&gt; LPC_SC-&amp;gt;PCLKSEL1 = PCLKSEL1_Val;&lt;/P&gt;&lt;P&gt;LPC_SC-&amp;gt;CLKSRCSEL = CLKSRCSEL_Val; /* Select Clock Source for PLL0 */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The debugger crashes on the last line of code. I use an oscillator that generates a 12MHz clock. The schematic is shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18704i89E343523A29C0B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of why it is crashing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 22:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Clock-Source-Select-Not-Working/m-p/766790#M30852</guid>
      <dc:creator>alexanderwashin</dc:creator>
      <dc:date>2018-02-22T22:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 Clock Source Select Not Working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Clock-Source-Select-Not-Working/m-p/766791#M30853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's suddenly working...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Feb 2018 12:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Clock-Source-Select-Not-Working/m-p/766791#M30853</guid>
      <dc:creator>alexanderwashin</dc:creator>
      <dc:date>2018-02-24T12:42:45Z</dc:date>
    </item>
  </channel>
</rss>

