<?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: LPC812 crystal with mcuXpresso SDK in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857942#M34138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Carter,&lt;/P&gt;&lt;P&gt;If the PLL code in LPCopen SDK runs fine on your target board, it means that hardware is okay, obviously the MCUXpresso SDK code for the PLL may have issue.&lt;/P&gt;&lt;P&gt;Pls check the register in debugger, for example, if the PIO0_8/PIO0_9 pins are configured as XTALin/XTALout pins, if the FCLKOUT is less than 100MHz, the FCCO clock frequency is in the range from 156 to 320MHz.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 09:45:52 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2019-01-08T09:45:52Z</dc:date>
    <item>
      <title>LPC812 crystal with mcuXpresso SDK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857941#M34137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to get an external 12MHz crystal working with the MCUXpresso SDK and its associated GUI tools. I can, however, make it work with the LPCopen driver library, but I'd rather stick with the MCUXpresso SDK since it seems like NXP will be phasing out or stopping support for the LPCopen SDK in the coming months or years (please correct me if I'm wrong) and I really, really don't want to mix two different driver libraries in the same project (everything else is working fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm ensuring that 'sys_osc' is the input to the SYSPLLCLKSEL mux, but what I'm seeing is that the PLL never locks. Additionally, the system oscillator is NOT bypassed (it is active), since I'm using&amp;nbsp;the recommended&amp;nbsp;crystal attached to both XTALIN and XTALOUT pins with the recommended 27pF bypass caps as well. If I hook up a scope, no activity is present across either side of the crystal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, here's the code that is generated by MCUXpresso SDK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/*!&amp;lt; Set up the clock sources */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/*!&amp;lt; Set up IRC */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;POWER_DisablePD&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kPDRUNCFG_PD_IRC_OUT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Ensure IRC_OUT is on */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;POWER_DisablePD&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kPDRUNCFG_PD_IRC&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Ensure IRC is on */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;POWER_DisablePD&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kPDRUNCFG_PD_SYSOSC&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Ensure Main osc is on */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_InitSysOsc&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;12000000U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Set main osc freq */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_Select&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kSYSPLL_From_SysOsc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; set sysosc to pll select */&lt;/SPAN&gt;
 clock_sys_pll_t config&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;src &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kCLOCK_SysPllSrcSysosc&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; set pll src */&lt;/SPAN&gt;
 config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;targetFreq &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;60000000U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; set pll target freq */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_InitSystemPll&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; set parameters */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_SetMainClkSrc&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kCLOCK_MainClkSrcSysPll&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; select pll clock for main clock */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_Select&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kCLKOUT_From_SysOsc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; select pll clock for CLKOUT */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_UpdateClkOUTsrc&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; update CLKOUT src */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_SetCoreSysClkDiv&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_SetClkDivider&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kCLOCK_DivUsartClk&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; set UART div */&lt;/SPAN&gt;
 SYSCON&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;UARTFRGDIV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;gt; Set UARTFRGDIV */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;CLOCK_SetUARTFRGMULT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/*!&amp;lt; Set UARTFRGMULT */&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/*!&amp;lt; Set SystemCoreClock variable. */&lt;/SPAN&gt;
 SystemCoreClock &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; BOARD_BOOTCLOCKIRC12M_CORE_CLOCK&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice? Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 23:36:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857941#M34137</guid>
      <dc:creator>ctimm</dc:creator>
      <dc:date>2019-01-07T23:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812 crystal with mcuXpresso SDK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857942#M34138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Carter,&lt;/P&gt;&lt;P&gt;If the PLL code in LPCopen SDK runs fine on your target board, it means that hardware is okay, obviously the MCUXpresso SDK code for the PLL may have issue.&lt;/P&gt;&lt;P&gt;Pls check the register in debugger, for example, if the PIO0_8/PIO0_9 pins are configured as XTALin/XTALout pins, if the FCLKOUT is less than 100MHz, the FCCO clock frequency is in the range from 156 to 320MHz.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 09:45:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857942#M34138</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-01-08T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812 crystal with mcuXpresso SDK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857943#M34139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the mex file and project export for your failing case?&lt;/P&gt;&lt;P&gt;It looks like you are using your own hardware, but can you confirm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Brendon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2019 01:39:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-crystal-with-mcuXpresso-SDK/m-p/857943#M34139</guid>
      <dc:creator>brendonslade</dc:creator>
      <dc:date>2019-01-26T01:39:31Z</dc:date>
    </item>
  </channel>
</rss>

