<?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: Re: Re: FRDM K64F Clock Setup in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375705#M19720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, very useful material. I will work on it today and I will let you know my results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 08:41:16 GMT</pubDate>
    <dc:creator>teixi</dc:creator>
    <dc:date>2014-08-26T08:41:16Z</dc:date>
    <item>
      <title>FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375700#M19715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in some DSP experiments with the FRDM K64F (MK64FN1M0VLL12) and programing with Keil uVision5 I am not able to make the CPU work at full speed (120MHZ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Pack Installer on Keil to add the startup and system files to the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default the FRDM K64F Core clock is set to 41.94Mhz inside the system_MK64F12.c files. ( Keil add the version 1.0, 2013-08-12 of this file) and everything works correctly. However if I change the CLOCL_SETUP to 3 the program get stack during the initialization at the following point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while((MCG-&amp;gt;S &amp;amp; MCG_S_LOCK0_MASK) == 0u) { /* Wait until locked */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some one have had the same problem? Anyone have an example of the FRDM K64F working at 120Mhz on Keil? There is an other version of the system_MK64F12.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;/P&gt;&lt;P&gt;/*!&lt;/P&gt;&lt;P&gt; * @file MK64F12&lt;/P&gt;&lt;P&gt; * @version 1.0&lt;/P&gt;&lt;P&gt; * @date 2013-08-12&lt;/P&gt;&lt;P&gt; * @brief Device specific configuration file for MK64F12 (implementation file)&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; * Provides a system configuration function and a global variable that contains&lt;/P&gt;&lt;P&gt; * the system frequency. It configures the device and initializes the oscillator&lt;/P&gt;&lt;P&gt; * (PLL) that is part of the microcontroller device.&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdint.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "MK64F12.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define DISABLE_WDOG&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define CLOCK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;/* Predefined clock setups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 0 ... Multipurpose Clock Generator (MCG) in FLL Engaged Internal (FEI) mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reference clock source for MCG module is the slow internal clock source 32.768kHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock = 41.94MHz, BusClock = 41.94MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1 ... Multipurpose Clock Generator (MCG) in PLL Engaged External (PEE) mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reference clock source for MCG module is an external crystal 8MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock = 100MHz, BusClock = 50MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2 ... Multipurpose Clock Generator (MCG) in Bypassed Low Power External (BLPE) mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock/Bus clock derived directly from an external crystal 8MHz with no multiplication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock = 8MHz, BusClock = 8MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3 ... Multipurpose Clock Generator (MCG) in PLL Engaged External (PEE) mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reference clock source for MCG module is an external crystal 8MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock = 120MHz, BusClock = 60MHz&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375700#M19715</guid>
      <dc:creator>teixi</dc:creator>
      <dc:date>2014-08-22T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375701#M19716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not for Keil, but this might help you:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/06/14/frdm-k64f-atmaximum-speed-of-120-mhz/" title="http://mcuoneclipse.com/2014/06/14/frdm-k64f-atmaximum-speed-of-120-mhz/"&gt;http://mcuoneclipse.com/2014/06/14/frdm-k64f-atmaximum-speed-of-120-mhz/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:44:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375701#M19716</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-22T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375702#M19717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just in case: attached such a project for 120 MHz core and 60 MHz bus (for Eclipse/GNU).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:50:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375702#M19717</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-22T10:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375703#M19718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ups, missed to attach the file.&lt;/P&gt;&lt;P&gt;Project is on GitHub:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F_BlinkLED" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F_BlinkLED"&gt;mcuoneclipse/Examples/Eclipse/FRDM-K64F/FRDM-K64F_BlinkLED at master · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375703#M19718</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-22T10:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375704#M19719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also been doing some benchmarks between CodeWarrior and KDS.&amp;nbsp; KDS knocked the socks off of CodeWarrior and the only thing I can attribute it to is this attached started file that runs before my main.c code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at it.&amp;nbsp; It may help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Baker&lt;/P&gt;&lt;P&gt;AVG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 21:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375704#M19719</guid>
      <dc:creator>johnbaker</dc:creator>
      <dc:date>2014-08-25T21:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375705#M19720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, very useful material. I will work on it today and I will let you know my results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 08:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375705#M19720</guid>
      <dc:creator>teixi</dc:creator>
      <dc:date>2014-08-26T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F Clock Setup</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375706#M19721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer John, It was very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I found the solution. I post it here in case someone have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The files included by Keil for the FRDM K64F are an initial version and have some bugs. Hopefully Keil will&amp;nbsp; update the package for this platform soon but until then the solution is to change some files manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The files that need to be changed (version 2.5) are :&lt;/P&gt;&lt;P&gt;- MK64F12.h&lt;/P&gt;&lt;P&gt;- system_MK64F12.h&lt;/P&gt;&lt;P&gt;- system_MK64F12.c ( you need to delete some includes on this file and include instead the file MK64F12.h)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to change the files startup_MK64F12.s. With the version 1.0 it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where to find the updated version of this files? There is a software package called Kinetis SDK 1.0.0 that can be downloaded from &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK"&gt;www.freescale.com/ksdk&lt;/A&gt; and include this files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards :smileyhappy:,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 17:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-Clock-Setup/m-p/375706#M19721</guid>
      <dc:creator>teixi</dc:creator>
      <dc:date>2014-08-28T17:29:33Z</dc:date>
    </item>
  </channel>
</rss>

