<?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 Kinetis KL15z128 SDK with power manager problem in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666308#M7311</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 am currently testing behaviour of power manager example program, that can be found in kinetis SDK, and I have a strange problem.&lt;/P&gt;&lt;P&gt;Every time when I go to sleep in VLLS3, I would like to test wakeup source in LLWU_IRQ (I am using LPTMR0 as wakeup source - basically unchanged sample code), but it seems that code provided in LLWU_IRQ is not entering into if statement (condition based on GetInternalWakeupModuleFlag function).&lt;/P&gt;&lt;P&gt;I've manually checked LLWU-&amp;gt;F3 register, and it is always 0 (no flags set) when it should have 1 bit set (the bit corresponding LPTMR0 wakeup flag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone test this example and check if that works similar? Is that a bug in example code? How can I test wakeup source if GetInternalWakeupModuleFlag function is not working correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 16:00:32 GMT</pubDate>
    <dc:creator>kamil-al</dc:creator>
    <dc:date>2017-05-29T16:00:32Z</dc:date>
    <item>
      <title>Kinetis KL15z128 SDK with power manager problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666308#M7311</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 am currently testing behaviour of power manager example program, that can be found in kinetis SDK, and I have a strange problem.&lt;/P&gt;&lt;P&gt;Every time when I go to sleep in VLLS3, I would like to test wakeup source in LLWU_IRQ (I am using LPTMR0 as wakeup source - basically unchanged sample code), but it seems that code provided in LLWU_IRQ is not entering into if statement (condition based on GetInternalWakeupModuleFlag function).&lt;/P&gt;&lt;P&gt;I've manually checked LLWU-&amp;gt;F3 register, and it is always 0 (no flags set) when it should have 1 bit set (the bit corresponding LPTMR0 wakeup flag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone test this example and check if that works similar? Is that a bug in example code? How can I test wakeup source if GetInternalWakeupModuleFlag function is not working correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 16:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666308#M7311</guid>
      <dc:creator>kamil-al</dc:creator>
      <dc:date>2017-05-29T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis KL15z128 SDK with power manager problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666309#M7312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've tested that on FRDM-KL25 on the same sdk, and as far as I can see there are no flags set in register you've mentioned. Anyone else can test/check that? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 12:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666309#M7312</guid>
      <dc:creator>Ryssus</dc:creator>
      <dc:date>2017-05-31T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis KL15z128 SDK with power manager problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666310#M7313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamil Allaf, Ryssus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a normal behavior in this demo; This flag is actually setting, but MCU will reset from VLLS mode, a LLWU interrupt will be pending, but it will no be trigger until you get to the line NVIC_EnableIRQ(LLWU_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you can see, this line is after the LPTMR_Init() function. Inside this function you change the value of the register CSR, and this clears the flag, so when you arrive to NVIC_EnableIRQ(LLWU_IRQn); the flag is already cleared. This is why in this demo, when you get to the handler, it is not entering into if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information could clarify your question.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&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, 15 Jun 2017 19:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Kinetis-KL15z128-SDK-with-power-manager-problem/m-p/666310#M7313</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-06-15T19:32:50Z</dc:date>
    </item>
  </channel>
</rss>

