<?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: Clock Setting Problem in Processor Expert Code for MK22FN512xxx12 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382646#M20388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Adrian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 22:59:33 GMT</pubDate>
    <dc:creator>brunopaillard</dc:creator>
    <dc:date>2015-01-08T22:59:33Z</dc:date>
    <item>
      <title>Clock Setting Problem in Processor Expert Code for MK22FN512xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382644#M20386</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;The code that processor Expert generates to manage the clocks (set a new clock) on the MK22FN512 does not seem to allow HSRUN mode, except when it is initially set in CPU_CLOCK_CONFIG_0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More specifically, I believe the function CPU_SetClockConfiguration () in CPU_Init.c has the following error:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; At line 767, the line "&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ((CPU_ClockConfigDescriptors[ClockConfigurationID].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PowerMode&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;amp; CPU_CLOCK_HSRUN_ENABLE_MASK) != 0U) {"&amp;nbsp;&amp;nbsp; uses ClockConfigurationID, instead of [the argument of the function] &lt;/SPAN&gt;ModeID&lt;/P&gt;&lt;P&gt;At that point, ClockConfigurationID has not been initialized to ModeID yet. So it really represents the last clock configuration, NOT the one we want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Moving line 827"&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ClockConfigurationID = ModeID;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Store clock configuration identifier */"&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #003300;"&gt;up, to before line 767 above resolves the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not create an immediate problem because it seems that the CPU runs remarkably well at 120 MHz in RUN mode...! At least at room temperatures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 00:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382644#M20386</guid>
      <dc:creator>brunopaillard</dc:creator>
      <dc:date>2015-01-02T00:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Clock Setting Problem in Processor Expert Code for MK22FN512xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382645#M20387</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;I was testing the behavior you are reporting and found the same behavior. I think this is a bug on the Processor Expert code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already reported the issue to the development team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in the Freescale products.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&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>Thu, 08 Jan 2015 22:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382645#M20387</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-08T22:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clock Setting Problem in Processor Expert Code for MK22FN512xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382646#M20388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Adrian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 22:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Clock-Setting-Problem-in-Processor-Expert-Code-for/m-p/382646#M20388</guid>
      <dc:creator>brunopaillard</dc:creator>
      <dc:date>2015-01-08T22:59:33Z</dc:date>
    </item>
  </channel>
</rss>

