<?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: VLPS mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418907#M23902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro di Castri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me which code you are using? KSDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After you enter the PIT interrupt, did you check your SMC_PMSTAT register, just check it, whether you are really enter in VLPS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Besides, whether your power consumption is lower than run mode?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 07:35:34 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2015-04-27T07:35:34Z</dc:date>
    <item>
      <title>VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418903#M23898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I am working with the MK02FN128VFM10&lt;/P&gt;&lt;P&gt;I use the &lt;SPAN style="color: #ff00ff;"&gt;POWER_SYS_SetMode( epower_mode_vlps, kPowerManagerPolicyAgreement );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="color: #ff00ff; font-size: 13.3333330154419px;"&gt;epower_mode_vlps &lt;SPAN style="color: #000000;"&gt;is my index to the right power mode. I verify the entered mode is the vlps and the&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;return valu is kPowerManagerSuccess.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;The function is called during the initialization before the main loop. After the call the execution stops there and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;the main loop is not reached. That's normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;I initialize the LPTIMER, the SYS_TICK and the PIT0. All of the interrupt are serviced when the vlps mode is entered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;I expect the clocks should be stopped in vlps, so no SYS_TICK and no PIT0 should be serviced. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333330154419px;"&gt;Why is it happening???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 10:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418903#M23898</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-04-17T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418904#M23899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro di Castri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you sure your VLPS is entered successfully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you check the MCU power consumption?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If enter the VLPS, except the LPTIMER can works,&amp;nbsp; PIT and systick can't work. Are you sure your interrupt is have after your VLPS is entered, not happen before enter VLPS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please give me more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&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, 21 Apr 2015 08:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418904#M23899</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-04-21T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418905#M23900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="215657" data-username="kerryzhou" href="https://community.nxp.com/people/kerryzhou" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #f6f6f6;"&gt;Jingjing Zhou&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank You for the follow up.&lt;/P&gt;&lt;P&gt;Here is the stub of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;__disable_irq();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_xtal0ClkFreq = 0U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_xtalRtcClkFreq = 0U;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; power_mode_switching_init( );&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_Init( g_defaultClockConfigurations, 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;clockCallbackTable, ARRAY_SIZE(clockCallbackTable));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; power_manager_error_code_t ret;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock_manager_error_code_t retclk = CLOCK_SYS_UpdateConfiguration( CLOCK_CONFIG_INDEX_FOR_VLPR, kClockManagerPolicyForcible );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = POWER_SYS_SetMode( epower_mode_run, kPowerManagerPolicyAgreement );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = POWER_SYS_SetMode( epower_mode_vlpr, kPowerManagerPolicyAgreement );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pit0_init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pit0_start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_HAL_SetPstopMode( SMC_BASE, kSmcPstopStop );&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ret = POWER_SYS_SetMode( epower_mode_vlps, kPowerManagerPolicyAgreement );&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I place a brekpoint in the pit0 isr routine I see the service execution. The SLEEPONEXIT is activated,&lt;/P&gt;&lt;P&gt;The while(1) is never reached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return value are all successfull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your opinion ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418905#M23900</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-04-21T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418906#M23901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would still like to have a support...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418906#M23901</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-04-24T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418907#M23902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro di Castri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me which code you are using? KSDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After you enter the PIT interrupt, did you check your SMC_PMSTAT register, just check it, whether you are really enter in VLPS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Besides, whether your power consumption is lower than run mode?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 07:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418907#M23902</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-04-27T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418908#M23903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zhou&lt;/P&gt;&lt;P&gt;I successfully enter the mode.&lt;/P&gt;&lt;P&gt;If I read in the pi0 interrupt SMC-&amp;gt;PMSTAT I get 4;&lt;/P&gt;&lt;P&gt;I cannot measure the current in the processor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value 4 means VLPR,...&lt;/P&gt;&lt;P&gt;Comments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 08:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418908#M23903</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-04-29T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418909#M23904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro di Castri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the state is VLPR,&amp;nbsp; not VLPS , core clock, NVIC, PIT are all working, please refer to Table 7-2. Module operation in low power modes in &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/data_sheet/K02P64M100SFA.pdf?fasp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;K02P64M100SFARM.pdf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You phenomena is correct in VLPR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want see you code reach while(1), you can add some code in your while(1) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;(my name)&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>Thu, 30 Apr 2015 01:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/VLPS-mode/m-p/418909#M23904</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-04-30T01:38:31Z</dc:date>
    </item>
  </channel>
</rss>

