<?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: Clocks Configuration problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636341#M38403</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;For Kinetis development the clock configuration represents a few lines of code and so probably 0.0001% of any project (it will already exist in a decent library). I have set this up for more than 250 Kinetis parts and configurations and never though of needing a tool to help since it is more flexible to understand the simple basics and just do it exactly as one wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would invest energy in completing work accurately and well than getting annoyed with the manufacturer. These tools are basically PR gags to get people hooked on their chips, so shouldn't be an issue for professional developers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 16:30:56 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-01-26T16:30:56Z</dc:date>
    <item>
      <title>Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636336#M38398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;I want to SDK2.0 instead of Processor Expert. I have used „Clocks Configuration“ for clock configuration (export it attachment) and replaced directory in my project (made in KDS3.2) with this export. Program ends in „&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;CLOCK_SetExternalRefClkConfig(oscsel);“ at „&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; (!(MCG-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;S&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &amp;amp; MCG_S_OSCINIT0_MASK))“. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;I have tried to enable pins for EXTAL0 and XTAL0. Is there anyone who knows, where is mistake? Is there any manual for web configurator?&lt;BR /&gt; I am using KL16Z128 with external crystal 16MHz and KDS3.2 with SDK2.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337565"&gt;MKL16Z128xxx4_pins_sources_2017-01-23_14_06.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337565"&gt;MKL16Z128xxx4_clocks_sources_2017-01-23_12_39.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 13:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636336#M38398</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2017-01-23T13:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636337#M38399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have posted on a similar problem with the TWR-60DN. We are getting a hard fault in the clock module. I think the code generated is bad. It was noticed by an NXP moderator and he asked for more information last week, but have heard nothing since. So maybe you do not have a problem with your clock. What does work is the "Hello World" project from the Freertos site, at least for the TWR-60DN. As a suggestion you could try loading and running that project and see if you still have a clock problem. You don't need to bother with more than putting a break point in the first statement in Main.c. If you get that far your clock is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 18:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636337#M38399</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2017-01-23T18:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636338#M38400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for advice but I would rather use &lt;SPAN style="font-family: 'Helvetica','sans-serif'; background: white;"&gt;„Clocks Configuration“&lt;/SPAN&gt; instead. It allows me to set various clock modes in processor. Besides if NXP provides this tool, it should work. HW is fine and project with Processor expert works as well with external crystal. I want to use &lt;SPAN style="font-family: 'Helvetica','sans-serif'; background: white;"&gt;„Clocks Configuration“ for KL16Z128 with external crystal 16MHz in PEE mode. Does anybody knows how to make it work?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 10:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636338#M38400</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2017-01-24T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636339#M38401</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;This code will configure the KL16 to run in PEE at 48Mz (24MHz bus/flash) for a 16MHz crystal.&lt;BR /&gt;I show the actual register value writes in brackets []:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCG_C2 = (MCG_C2_RANGE_8M_32M | MCG_C2_GAIN_MODE | MCG_C2_EREFS | MCG_C2_LOCRE0); // [&lt;SPAN style="color: #ff0000;"&gt;0xa4 for low gain mode or 0xac for high gain mode&lt;/SPAN&gt;] select crystal oscillator and select a suitable range&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MCG_C1 = (MCG_C1_CLKS_EXTERN_CLK | MCG_C1_FRDIV_512); // [0xa0] switch to external source (the FLL input clock is set to as close to its input range as possible, although this is not absolutely necessary if the FLL will not be used)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_OSCINIT) == 0) {} // loop until the crystal source has been selected&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_IREFST) != 0) {} // loop until the FLL source is no longer the internal reference clock&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_CLKST_MASK) != MCG_S_CLKST_EXTERN_CLK) {} // loop until the external reference clock source is valid&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MCG_C5 = ((CLOCK_DIV - 1) | MCG_C5_PLLSTEN0); // [0x27] now move from state FEE to state PBE (or FBE) PLL remains enabled in normal stop modes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MCG_C6 = ((CLOCK_MUL - MCG_C6_VDIV0_LOWEST) | MCG_C6_PLLS); // [0x58] set the PLL multiplication factor&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_PLLST) == 0) {} // loop until the PLLS clock source becomes valid&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_LOCK) == 0) {} // loop until PLL locks&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SIM_CLKDIV1 = (((SYSTEM_CLOCK_DIVIDE - 1) &amp;lt;&amp;lt; 28) | ((BUS_CLOCK_DIVIDE - 1) &amp;lt;&amp;lt; 16)); // [0x10010000] prepare bus clock divides&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MCG_C1 = (MCG_C1_CLKS_PLL_FLL | MCG_C1_FRDIV_1024); // [0x28] finally move from PBE to PEE mode - switch to PLL clock&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;while ((MCG_S &amp;amp; MCG_S_CLKST_MASK) != MCG_S_CLKST_PLL) {} // loop until the PLL clock is selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the MCG_C2 value depends on whether the crystal circuit needs high or low gain (whether it has feedback resistor and loading capacitors).&lt;BR /&gt;If set incorrectly the crystal will not start oscillating and you will get stuck waiting for the crystal source to be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KL16/KL26: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL26Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL26Z.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;MCG: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FMCG.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/MCG.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636339#M38401</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-24T21:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636340#M38402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark for advice and I will test it for sure. MCG description is very&lt;SPAN class=""&gt; understandable&lt;/SPAN&gt; and useful. But I still would like to learn how to use "Clocks Configuration" tool. If it is provided by NXP (Qualcom) then I would like to use it. It seems that work with it should be easy. That is why I do not understand why there is nobody who can say what I am doing wrong and give me some kind of manual how to use "Clocks Configuration".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 08:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636340#M38402</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2017-01-26T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636341#M38403</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;For Kinetis development the clock configuration represents a few lines of code and so probably 0.0001% of any project (it will already exist in a decent library). I have set this up for more than 250 Kinetis parts and configurations and never though of needing a tool to help since it is more flexible to understand the simple basics and just do it exactly as one wants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would invest energy in completing work accurately and well than getting annoyed with the manufacturer. These tools are basically PR gags to get people hooked on their chips, so shouldn't be an issue for professional developers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:30:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636341#M38403</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-26T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clocks Configuration problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636342#M38404</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;Sorry for the late reply!&lt;/P&gt;&lt;P&gt;Please try to enable the OSCERCLK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock Tool.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12715i4416C28615D6C6AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock Tool.png" alt="Clock Tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Tue, 31 Jan 2017 13:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clocks-Configuration-problem/m-p/636342#M38404</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-31T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

