<?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 k60 clock hanging in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k60-clock-hanging/m-p/359659#M18191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Currently I am using K60FN1M0VLQ15 core,but it seems to be hanging at this region&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt; while((MCG_S &amp;amp; MCG_S_OSCINIT0_MASK) == 0x00U) { /* Check that the oscillator is running */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Searching around i found this fix where we have to change the RANGE to 0x01.But doing that also did not solve the issue.&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt; /* MCG_C10: LOCRE2=0,??=0,RANGE1=2,HGO1=0,EREFS1=0,??=0,??=0 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C10 = MCG_C10_RANGE1(0x02);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=1,LP=0,IRCS=0 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C2 = (MCG_C2_RANGE0(0x02) | MCG_C2_EREFS0_MASK);&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Is there any PLL clock settings i am missing or is there a fix around this?&lt;/P&gt;&lt;P&gt;MGC mode is set to PEE and my desired MGC output is 150 MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 08:19:14 GMT</pubDate>
    <dc:creator>arunkumar1989</dc:creator>
    <dc:date>2014-11-21T08:19:14Z</dc:date>
    <item>
      <title>k60 clock hanging</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k60-clock-hanging/m-p/359659#M18191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Currently I am using K60FN1M0VLQ15 core,but it seems to be hanging at this region&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt; while((MCG_S &amp;amp; MCG_S_OSCINIT0_MASK) == 0x00U) { /* Check that the oscillator is running */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Searching around i found this fix where we have to change the RANGE to 0x01.But doing that also did not solve the issue.&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt; /* MCG_C10: LOCRE2=0,??=0,RANGE1=2,HGO1=0,EREFS1=0,??=0,??=0 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C10 = MCG_C10_RANGE1(0x02);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=1,LP=0,IRCS=0 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C2 = (MCG_C2_RANGE0(0x02) | MCG_C2_EREFS0_MASK);&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;Is there any PLL clock settings i am missing or is there a fix around this?&lt;/P&gt;&lt;P&gt;MGC mode is set to PEE and my desired MGC output is 150 MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 08:19:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k60-clock-hanging/m-p/359659#M18191</guid>
      <dc:creator>arunkumar1989</dc:creator>
      <dc:date>2014-11-21T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: k60 clock hanging</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k60-clock-hanging/m-p/359660#M18192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It need to enable OSC1 by configuring it in the MCG_C10 register – set up the parameters just like OSC0. Then you have to enable it by setting the ERCLKEN bit in the OSC1_CR register. Once you have the OSC1 enabled, you can then select it as the reference for PLL0 or PLL1. It is tricky if you want to use OSC1 as the reference for the PLL that is providing the system clock in PEE mode. You must first transition from FEI to FBE to PBE before switching from PBE to PEE. You can only be in FBE&lt;/P&gt;&lt;P&gt;mode (and PBE) using either OSC0 or the RTC clock as the external clock source. You cannot be in there clock modes with OSC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached code is MCG works in PEE mode (MCG clock output from PLL0, the PLL0 refer clock is OSC1).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 08:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k60-clock-hanging/m-p/359660#M18192</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-11-24T08:07:44Z</dc:date>
    </item>
  </channel>
</rss>

