<?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 LPC54608 Powerlib/User manual UM10912 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727042#M29392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the user manual UM10912 in chapter 6 page 120 the following can be found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the PLL to boost the input frequency if a main clock is needed with a frequency higher than the FRO 12&lt;BR /&gt;MHz clock and the FRO 96 MHz or 48 MHz clock (fro_hf) is not appropriate. Before connecting the output&lt;BR /&gt;of the system PLL to the main clock, the user must call the POWER_SetVoltageForFreq API in SDK&lt;BR /&gt;software package to deliver the amount of power needed for the CPU operating frequency. &lt;EM&gt;&lt;STRONG&gt;The API call&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;sets the FLASHCFG register.&lt;/STRONG&gt;&lt;/EM&gt; See Chapter 8 “LPC546xx Power profiles/Power control API”. At 220 MHz&lt;BR /&gt;the system clock/access time can be lower when compared to 180 MHz because the power library&lt;BR /&gt;optimizes the on-chip voltage regulator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Keil and copied the keil_lib_power.lib from the actual SDK_2.3.0_LPCXpresso64608. If i call the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;POWER_SetVoltageForFreq (for example with frequency 96000000Hz)&lt;EM&gt;&lt;STRONG&gt; the register FLASHCFG is not changed&lt;/STRONG&gt; &lt;/EM&gt;by the function as stated in the manual (checked with the debugger).&lt;/P&gt;&lt;P&gt;If I do not change FLASHCFG manually together with the call of&amp;nbsp;POWER_SetVoltageForFreq, my application crashes after switching the main clock to FROHF. If i manually set the FLASHCFG.FLASHTIM&amp;nbsp; everything seems to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in the library or a documentation problem in UM10912?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Joachim&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 11:30:52 GMT</pubDate>
    <dc:creator>joachimbeck</dc:creator>
    <dc:date>2017-11-21T11:30:52Z</dc:date>
    <item>
      <title>LPC54608 Powerlib/User manual UM10912</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727042#M29392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the user manual UM10912 in chapter 6 page 120 the following can be found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the PLL to boost the input frequency if a main clock is needed with a frequency higher than the FRO 12&lt;BR /&gt;MHz clock and the FRO 96 MHz or 48 MHz clock (fro_hf) is not appropriate. Before connecting the output&lt;BR /&gt;of the system PLL to the main clock, the user must call the POWER_SetVoltageForFreq API in SDK&lt;BR /&gt;software package to deliver the amount of power needed for the CPU operating frequency. &lt;EM&gt;&lt;STRONG&gt;The API call&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;sets the FLASHCFG register.&lt;/STRONG&gt;&lt;/EM&gt; See Chapter 8 “LPC546xx Power profiles/Power control API”. At 220 MHz&lt;BR /&gt;the system clock/access time can be lower when compared to 180 MHz because the power library&lt;BR /&gt;optimizes the on-chip voltage regulator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Keil and copied the keil_lib_power.lib from the actual SDK_2.3.0_LPCXpresso64608. If i call the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;POWER_SetVoltageForFreq (for example with frequency 96000000Hz)&lt;EM&gt;&lt;STRONG&gt; the register FLASHCFG is not changed&lt;/STRONG&gt; &lt;/EM&gt;by the function as stated in the manual (checked with the debugger).&lt;/P&gt;&lt;P&gt;If I do not change FLASHCFG manually together with the call of&amp;nbsp;POWER_SetVoltageForFreq, my application crashes after switching the main clock to FROHF. If i manually set the FLASHCFG.FLASHTIM&amp;nbsp; everything seems to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in the library or a documentation problem in UM10912?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Joachim&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 11:30:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727042#M29392</guid>
      <dc:creator>joachimbeck</dc:creator>
      <dc:date>2017-11-21T11:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Powerlib/User manual UM10912</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727043#M29393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joachim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have test POWER_SetVoltageForFreq with frequency 96000000Hz. the FLASHCFG[FLASHTIM] is changed , it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I think you didn't add this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POWER_SetVoltageForFreq(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 96000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; CLOCK_SetFLASHAccessCyclesForFreq(96000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I also use the SDK code, the project:SDK_2.3.0_LPCXpresso54608\boards\lpcxpresso54608\driver_examples\fmeas\mdk&lt;/P&gt;&lt;P&gt;Then do this modification:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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/34038iA768A9D07C0EE7E2/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;Then test the 96M function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34093i87B9CED5501AF9B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34139i619B81D8A91A2838/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you didn't add &amp;nbsp;CLOCK_SetFLASHAccessCyclesForFreq(96000000U);///*!&amp;lt; Set FLASH wait states for core */&lt;/P&gt;&lt;P&gt;Please follow my step, then try it again.&lt;/P&gt;&lt;P&gt;If you still have questions about it, please kindly let me know&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Have a great day,&lt;BR /&gt; Kerry&lt;/P&gt;&lt;P&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>Thu, 23 Nov 2017 06:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727043#M29393</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-11-23T06:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Powerlib/User manual UM10912</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727044#M29394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your detailed answer, that was exactly the way i do it, after finding out,&amp;nbsp; m that the documentation seems to be wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In UM10912 it is written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-object-id="464512" data-object-type="1"&gt;&lt;DIV data-jive-view="apps/content/questions/correct_view"&gt;&lt;DIV&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;The API call&lt;/STRONG&gt;&lt;/EM&gt; &lt;EM&gt;&lt;STRONG&gt;sets the FLASHCFG register.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that seems to be wrong!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-object-id="464512" data-object-type="1"&gt;&lt;DIV data-jive-view="apps/content/questions/correct_view"&gt;&lt;DIV&gt;&lt;P&gt;POWER_SetVoltageForFreq does not set the FLASHCFG register. This has to be done by calling CLOCK_SetFLASHAccessCyclesForFreq.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this should be corrected in UM10912.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank your for your support.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Joachim&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 07:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Powerlib-User-manual-UM10912/m-p/727044#M29394</guid>
      <dc:creator>joachimbeck</dc:creator>
      <dc:date>2017-11-23T07:40:38Z</dc:date>
    </item>
  </channel>
</rss>

