<?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のトピックRe: Wake up from VLLS3  by NMI in K82</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792099#M48195</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;I have put return to empty NMI interrupt handler but it dosn't help. MCU wakeup and start to consume power as usually.&lt;/P&gt;&lt;P&gt;But execution flow is not reach main(). And it start to be interesting how-to handle this case.&lt;/P&gt;&lt;P&gt;A4 can be used and C6 and LPTIMER0 work for wakeup well.&lt;/P&gt;&lt;P&gt;But what about NMI wotkflow ? What is problems can be here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2018 11:42:09 GMT</pubDate>
    <dc:creator>EugeneHiihtaja</dc:creator>
    <dc:date>2018-07-12T11:42:09Z</dc:date>
    <item>
      <title>Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792095#M48191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;I'm using power manager example for K82 and wakeup ( via reboot ) from&amp;nbsp;VLLS3&amp;nbsp; low power mode work properly by using GPIO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NMI pin is also can be used for wake up , if it configured as NMI by using Config Tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see NMI wake up MCU but execution flow is not go in similar way as some pin configured for useing LLWU controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to organize clean up flow in NMI interrupt handler in case usage of it for wakeup MCU from VLLSx modes ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if I press NMI button on FRDM-K82 evaluation board, I can see at list 10-15 calls of NMI handler.&lt;/P&gt;&lt;P&gt;How-to supress "button drizzling" on this pin ? What can be configured for this pin ?&lt;/P&gt;&lt;P&gt;SW3 button is able to react on rising or falling edge but NMI always generate a lot of noise.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 16:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792095#M48191</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-08T16:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792096#M48192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes,&amp;nbsp; in VLLSx mode, this low power mode can be waked up by the LLWU pin, NMI and Reset pin.&lt;/P&gt;&lt;P&gt;&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/65053iF1A2CDF152EABF69/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;The Vllsx wake up will have the wakeup reset.&lt;/P&gt;&lt;P&gt;About the NMI, you don't need to do the clean up, it doesn't like the PORT interrupt.&lt;/P&gt;&lt;P&gt;About the "button drizzling" , you can do the hardware debounce, add an external capacitor, like this picture:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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/65054iD149FE61EF6B3DB7/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;You can't do the software debounce, because when the chip detect the NMI reset, the chip will be waked up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 09 Jul 2018 03:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792096#M48192</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-09T03:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792097#M48193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&amp;nbsp;Wake up via reset by using PTC6 works as expected with enablers from example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case of NMI, MCU starts to consume power e.g wakeup happens, but main() function is not called.&lt;/P&gt;&lt;P&gt;NMI interrupt handler is populated in own source code. It is just empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it is exists some trick when after NMI wakeup, execution flow should reach main() as usually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also , how-to detect if this warm reboot due NMI wakeup ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 07:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792097#M48193</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-09T07:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792098#M48194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you write the NMI ISR function? You can add :&lt;/P&gt;&lt;P&gt;&amp;nbsp;return;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In the NMI interrupt handler, then try it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;About the NMI interrupt detect, you can set a flag in the NMI interrupt handler.&lt;/P&gt;&lt;P&gt;But, could you tell me why you need to use the NMI interrupt to wake up the chip? I think maybe you can use the LLWU module to wake up the chip, it will be more easy to control. NMI pin also can be configured as PTA4, PTA4 pin also the LLWU pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 12 Jul 2018 05:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792098#M48194</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-12T05:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792099#M48195</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;I have put return to empty NMI interrupt handler but it dosn't help. MCU wakeup and start to consume power as usually.&lt;/P&gt;&lt;P&gt;But execution flow is not reach main(). And it start to be interesting how-to handle this case.&lt;/P&gt;&lt;P&gt;A4 can be used and C6 and LPTIMER0 work for wakeup well.&lt;/P&gt;&lt;P&gt;But what about NMI wotkflow ? What is problems can be here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:42:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792099#M48195</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-12T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792100#M48196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eugene,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please share your test project which can reproduce the problem to me, I will also test it on my side when I have time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;kerry&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>Fri, 13 Jul 2018 10:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792100#M48196</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-13T10:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wake up from VLLS3  by NMI in K82</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792101#M48197</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;I just activate NMI pin via ConfigTool, put device to VLLS3 mode as usually and press button NMI on eval board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is code from pin_mux.c what is used to activate pin as NMI and some filters is set for fun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTA4 (pin 40) is configured as NMI_b */&lt;BR /&gt; PORT_SetPinMux(PORTA, 4U, kPORT_MuxAlt7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PORTA-&amp;gt;PCR[4] = ((PORTA-&amp;gt;PCR[4] &amp;amp;&lt;BR /&gt; /* Mask bits to zero which are setting */&lt;BR /&gt; (~(PORT_PCR_PFE_MASK | PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK)))&lt;/P&gt;&lt;P&gt;/* Passive Filter Enable: Passive input filter is enabled on the corresponding pin, if the&lt;BR /&gt; * pin is configured as a digital input.&lt;BR /&gt; * Refer to the device data sheet for filter characteristics. */&lt;BR /&gt; | PORT_PCR_PFE(kPORT_PassiveFilterEnable)&lt;/P&gt;&lt;P&gt;/* Open Drain Enable: Open drain output is enabled on the corresponding pin, if the pin is&lt;BR /&gt; * configured as a digital output. */&lt;BR /&gt; | PORT_PCR_ODE(kPORT_OpenDrainEnable));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Wake-up-from-VLLS3-by-NMI-in-K82/m-p/792101#M48197</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-13T10:41:52Z</dc:date>
    </item>
  </channel>
</rss>

