<?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 Why does UART not work at Max Clock Configuration in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495215#M4587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I can't get UART to work when I change the clock configuration form the default. This can be recreated by setting up a new project with KSDK 1.3, modifying the UART non blocking example to work in the new project, and the adding&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define CLOCK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1u&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the system_MK64F12.h file. If the clocks are left to run at the default speed, UART works perfectly.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included my example as an attachment. I am using the FRDM K64F board.&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-338553"&gt;SerialTest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 20:00:45 GMT</pubDate>
    <dc:creator>obi_kwiet</dc:creator>
    <dc:date>2016-03-21T20:00:45Z</dc:date>
    <item>
      <title>Why does UART not work at Max Clock Configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495215#M4587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I can't get UART to work when I change the clock configuration form the default. This can be recreated by setting up a new project with KSDK 1.3, modifying the UART non blocking example to work in the new project, and the adding&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define CLOCK_SETUP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1u&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the system_MK64F12.h file. If the clocks are left to run at the default speed, UART works perfectly.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included my example as an attachment. I am using the FRDM K64F board.&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-338553"&gt;SerialTest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 20:00:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495215#M4587</guid>
      <dc:creator>obi_kwiet</dc:creator>
      <dc:date>2016-03-21T20:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does UART not work at Max Clock Configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495216#M4588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Seth,&lt;/P&gt;&lt;P&gt;The UART can work at the max clock configuration.&lt;/P&gt;&lt;P&gt;The project you attached have some problem, you use the PEE mode ,&lt;/P&gt;&lt;P&gt;use the system oscillator 0 reference clock , while you do not define it ,&lt;/P&gt;&lt;P&gt;so you can check , when you project run to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; clock = CLOCK_HAL_GetOutClk(MCG_BASE);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the "clock" is 0 .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can directly add the "board" folder refer to the demo under KSDK, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;it define the system oscillator 0 reference clock at the file of board.h :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;/* OSC0 configuration. */&lt;/P&gt;&lt;P&gt;#define OSC0_XTAL_FREQ 50000000U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also change your project and send to you , it can work well now .&lt;/P&gt;&lt;P&gt;Hope it can helps you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Tue, 22 Mar 2016 07:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495216#M4588</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-03-22T07:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does UART not work at Max Clock Configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495217#M4589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alice, you rock! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually had the same issue with another function reading g_xtal0ClkFreq as 0. Unfortunately, I wasn't able to tell where that should have been defined or how to do it, so I actually ended up hard coding it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's looks like the startup code that comes in the Startup_Code folder does everything bare metal without using the SDK, and as a consequence certain globals that the SDK requires do not get set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had a chance to get as deep into the MCG documentation as some of the other peripherals, but it looks like the Clock_Init() function is basically redoes everything that the startup code already did, but set up some important globals in the process. Is the preferred way to do things?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last, the functions in the "board" folder seem to be able to get called without adding that path in the Cross ARM C Compiler Includes, or using including them in main. Is this folder of special significance? Are the files also special? I've looked for documentation on the KDS project folder structure, but haven't been able to find any so far. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seth Tucker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 20:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Why-does-UART-not-work-at-Max-Clock-Configuration/m-p/495217#M4589</guid>
      <dc:creator>obi_kwiet</dc:creator>
      <dc:date>2016-03-22T20:43:09Z</dc:date>
    </item>
  </channel>
</rss>

