<?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>Kinetis Microcontrollers中的主题 [MKW01Z128] Low Power Module</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01Z128-Low-Power-Module/m-p/646142#M39187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've encountered a few problems with the LowPower module from the connectivity software:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;I'm using the following code to enter in deep sleep:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PWRLib_WakeupReason_t wakeupReason;&lt;BR /&gt;if(PWR_CheckIfDeviceCanGoToSleep())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWR_SetDeepSleepTimeInMs(10000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;wakeupReason = PWR_EnterLowPower();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after wakeup it seems that the clock is not properly adjusted anymore. When I call the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSA_EXT_TimeDelay(10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes a lot longer to exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;I'm using a 32khz external xtal, but I can't configure it in PWR_Configuration.h. When i put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define cPWR_LPTMRClockSource&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; cLPTMR_Source_Ext_ERCLK32K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears in compilation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"*** ERROR: cPWR_LPTMRClockSource has to be set to cLPTMR_Source_Int_LPO_1KHz"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I can't change the clock source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 16:18:52 GMT</pubDate>
    <dc:creator>giancarlozanuz</dc:creator>
    <dc:date>2016-12-02T16:18:52Z</dc:date>
    <item>
      <title>[MKW01Z128] Low Power Module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01Z128-Low-Power-Module/m-p/646142#M39187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've encountered a few problems with the LowPower module from the connectivity software:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;I'm using the following code to enter in deep sleep:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PWRLib_WakeupReason_t wakeupReason;&lt;BR /&gt;if(PWR_CheckIfDeviceCanGoToSleep())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWR_SetDeepSleepTimeInMs(10000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;wakeupReason = PWR_EnterLowPower();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after wakeup it seems that the clock is not properly adjusted anymore. When I call the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSA_EXT_TimeDelay(10);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes a lot longer to exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;I'm using a 32khz external xtal, but I can't configure it in PWR_Configuration.h. When i put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define cPWR_LPTMRClockSource&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; cLPTMR_Source_Ext_ERCLK32K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears in compilation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"*** ERROR: cPWR_LPTMRClockSource has to be set to cLPTMR_Source_Int_LPO_1KHz"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I can't change the clock source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 16:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01Z128-Low-Power-Module/m-p/646142#M39187</guid>
      <dc:creator>giancarlozanuz</dc:creator>
      <dc:date>2016-12-02T16:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: [MKW01Z128] Low Power Module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01Z128-Low-Power-Module/m-p/646143#M39188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giancarlo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KW01 Connectivity Stack only supports two different low power modes with LPO configuration, that is the reason that you are having this errror, you can see this modes in the PWR_Configuration.h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the clock source, but you have to create your own mode, you can take as a reference the next document.&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-331918"&gt;Creating a VLLS1 Deep Sleep Mode with LPTMR&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can take a look for the next doc CONNFWKRM, the Low Power Library shows different modes that you can implement.&amp;nbsp;C:\Freescale\KW01_Connectivity_Software_1.0.0\ConnSw\doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01Z128-Low-Power-Module/m-p/646143#M39188</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2016-12-19T21:42:01Z</dc:date>
    </item>
  </channel>
</rss>

