<?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: KSDK MCG PLL example? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384496#M1055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M J,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) About the defauld MCG related configuration of&amp;nbsp; KSDK demo , its in here&amp;nbsp; "in startup -&amp;gt; sys_MK64F12.C".&lt;/P&gt;&lt;P&gt;Also, you can create a PE project ,then configuration the clock , refer to the generate code&amp;nbsp; ,like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48845i3F4900840DC6E02F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Use the KSDK driver configuration the MCG, you can refer to the "C:\Freescale\KSDK_1.1.0\doc\Kinetis SDK v1.1 API Reference Manual.pdf\34.2 MCG HAL driver" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can configuration the CLOCK through these two methods according to our need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you&amp;nbsp; have any question when configuration CLOCK,&amp;nbsp; welcome to the community discuss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post answers your question, please click the Correct Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post help your question, please click the helpful Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 02:29:17 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-01-05T02:29:17Z</dc:date>
    <item>
      <title>KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384495#M1054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;Hi There,&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;I am trying to get familiarized with the new SDK API's (very powerful yet much more complex).&amp;nbsp; To get started I am looking into how the MCG drivers work.&amp;nbsp; I was previously using the mcg.h/c which was quite simple to configure the PLL, clk sources, etc.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;In order to understand how this works I have been going through the SDK example projects to see how they are using the MCG.&amp;nbsp; I thought for sure that the USB examples would have to be configuring the PLL for proper operation.&amp;nbsp; After single stepping the code for the USB device CDC and a number of other projects I do not see any calls to any MCG PLL or OSC setups functions.&amp;nbsp; The only clock configuration that I can find in any of examples, other than clock gates, is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;“/* Setup board clock source. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_xtal0ClkFreq = 8000000U;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_xtalRtcClkFreq = 32768U;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;“&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial;"&gt;Yes, I could try and brute force my way using the API documentation,&amp;nbsp; but an example would be quite nice and seemingly appropriate.&amp;nbsp; Maybe there is one and I missed it somewhere?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jan 2015 04:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384495#M1054</guid>
      <dc:creator>mjg8t</dc:creator>
      <dc:date>2015-01-04T04:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384496#M1055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M J,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) About the defauld MCG related configuration of&amp;nbsp; KSDK demo , its in here&amp;nbsp; "in startup -&amp;gt; sys_MK64F12.C".&lt;/P&gt;&lt;P&gt;Also, you can create a PE project ,then configuration the clock , refer to the generate code&amp;nbsp; ,like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48845i3F4900840DC6E02F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Use the KSDK driver configuration the MCG, you can refer to the "C:\Freescale\KSDK_1.1.0\doc\Kinetis SDK v1.1 API Reference Manual.pdf\34.2 MCG HAL driver" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can configuration the CLOCK through these two methods according to our need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you&amp;nbsp; have any question when configuration CLOCK,&amp;nbsp; welcome to the community discuss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post answers your question, please click the Correct Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post help your question, please click the helpful Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 02:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384496#M1055</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-01-05T02:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384497#M1056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice.&amp;nbsp; Hiding in the startup code, that explains it.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 18:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384497#M1056</guid>
      <dc:creator>mjg8t</dc:creator>
      <dc:date>2015-01-05T18:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384498#M1057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My PE project does not generate the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sys_MK64F12.C" which runs the MCG setup code, but rather in my version it has the MCG config in the "CPU_Init.c".&amp;nbsp; I would like to get get PE running with the same config code as is used in the KSDK.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1) Can you tell me how you have conifgured the PE project for the K64 which you show the screen shot?&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am using KDS 2.0.0 with updates for PE and PE_K22.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2) are you using the "Kinetis SDK" and "Processor Expert" options as shown in my figure1?&amp;nbsp; I am getting an error in project creation when enabling both options.&amp;nbsp; The errors shown in figure 3 seem to inidicate that I the SDK is missing an update?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;My PE project creation steps when using KDS 2.0.0 with PE update and K22 update:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="k64_pe_setup_project_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48875i4F3FEBDDBC232A78/image-size/large?v=v2&amp;amp;px=999" role="button" title="k64_pe_setup_project_1.jpg" alt="k64_pe_setup_project_1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="k64_pe_ksdk_setup_project_error_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48876i9969D144E2C6D236/image-size/large?v=v2&amp;amp;px=999" role="button" title="k64_pe_ksdk_setup_project_error_2.jpg" alt="k64_pe_ksdk_setup_project_error_2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="k64_pe_ksdk_setup_project_error_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48877i9FAB2A57217DD313/image-size/large?v=v2&amp;amp;px=999" role="button" title="k64_pe_ksdk_setup_project_error_3.jpg" alt="k64_pe_ksdk_setup_project_error_3.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384498#M1057</guid>
      <dc:creator>mjg8t</dc:creator>
      <dc:date>2015-01-05T23:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384499#M1058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M J,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which KSDK version did you use ?&amp;nbsp; mine is the latest&amp;nbsp; KSDK 1.1.0 . I recommend you use the latest one (&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you build the "ksdk_platform_lib" before you create your project ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the "Getting strted with kinetis SDK "(C:\Freescale\KSDK_1.1.0\doc)&amp;nbsp; when you use KSDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pay attention , the Clock configuration is complete on the "system_MK22F.c". And after create project ,if you want&lt;/P&gt;&lt;P&gt;change the clock,&amp;nbsp; on one hand ,you can change on the file (In my own opinion , this methed is better);&lt;/P&gt;&lt;P&gt;On the other hand , you can use the SDK function ,its in here&amp;nbsp; : " Kinetis SDK v1.1 API Reference Manual.pdf\34.2 MCG HAL driver ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384499#M1058</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-01-06T02:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK MCG PLL example?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384500#M1059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information.&amp;nbsp; Indeed my problem was that I had installed the PE_KDS eclipse update from the KDS updates download pagge, where I needed to install the version locally from "KSDK_1.1.0\tools\eclipse_update".&amp;nbsp; All is working as expected now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 21:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-MCG-PLL-example/m-p/384500#M1059</guid>
      <dc:creator>mjg8t</dc:creator>
      <dc:date>2015-01-06T21:16:30Z</dc:date>
    </item>
  </channel>
</rss>

