<?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>i.MX Processors中的主题 iMXRT1176 ONOFF short interruption</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013022#M231923</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm working with an Embedded Artists uCOM IMXRT1176 board, trying to receive the short duration ONOFF button interruption for graceful shutdown. I can properly power on and get the emergency power off to shut down.&lt;/P&gt;&lt;P&gt;Here is a snippet of my current code:&lt;/P&gt;&lt;P&gt;void SNVS_PULSE_EVENT_IRQHandler(void);&lt;BR /&gt;void SNVS_PULSE_EVENT_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // indicate interruption happened&amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void init(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;// Enable the interruption&lt;BR /&gt;SNVS-&amp;gt;HPCR |= (1U &amp;lt;&amp;lt; SNVS_HPCR_BTN_MASK_SHIFT);&lt;/P&gt;&lt;P&gt;// Clear interruptions&lt;BR /&gt;SNVS-&amp;gt;LPSR |= (1U &amp;lt;&amp;lt; SNVS_LPSR_SPOF_SHIFT);&lt;BR /&gt;SNVS-&amp;gt;LPSR |= (1U &amp;lt;&amp;lt; SNVS_LPSR_EO_SHIFT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I verified that the interrupt flags are properly cleared, and the interruption enabled but I still can't get in&amp;nbsp;SNVS_PULSE_EVENT_IRQHandler(). I figured it from the startup_mimxrt1176_cm4.c file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SNVS_PULSE_EVENT_IRQHandler, // 84 : ON-OFF button press shorter than 5 secs (pulse event)&lt;/P&gt;&lt;P&gt;Am I using the right interrupt handler? Am I doing something wrong? Couldn't find an example on this. Using 2.14 version of SDK.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 16:11:19 GMT</pubDate>
    <dc:creator>achampoux</dc:creator>
    <dc:date>2024-12-12T16:11:19Z</dc:date>
    <item>
      <title>iMXRT1176 ONOFF short interruption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013022#M231923</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm working with an Embedded Artists uCOM IMXRT1176 board, trying to receive the short duration ONOFF button interruption for graceful shutdown. I can properly power on and get the emergency power off to shut down.&lt;/P&gt;&lt;P&gt;Here is a snippet of my current code:&lt;/P&gt;&lt;P&gt;void SNVS_PULSE_EVENT_IRQHandler(void);&lt;BR /&gt;void SNVS_PULSE_EVENT_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // indicate interruption happened&amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void init(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;// Enable the interruption&lt;BR /&gt;SNVS-&amp;gt;HPCR |= (1U &amp;lt;&amp;lt; SNVS_HPCR_BTN_MASK_SHIFT);&lt;/P&gt;&lt;P&gt;// Clear interruptions&lt;BR /&gt;SNVS-&amp;gt;LPSR |= (1U &amp;lt;&amp;lt; SNVS_LPSR_SPOF_SHIFT);&lt;BR /&gt;SNVS-&amp;gt;LPSR |= (1U &amp;lt;&amp;lt; SNVS_LPSR_EO_SHIFT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I verified that the interrupt flags are properly cleared, and the interruption enabled but I still can't get in&amp;nbsp;SNVS_PULSE_EVENT_IRQHandler(). I figured it from the startup_mimxrt1176_cm4.c file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SNVS_PULSE_EVENT_IRQHandler, // 84 : ON-OFF button press shorter than 5 secs (pulse event)&lt;/P&gt;&lt;P&gt;Am I using the right interrupt handler? Am I doing something wrong? Couldn't find an example on this. Using 2.14 version of SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 16:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013022#M231923</guid>
      <dc:creator>achampoux</dc:creator>
      <dc:date>2024-12-12T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1176 ONOFF short interruption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013161#M231931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224961"&gt;@achampoux&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The code on the following post shows how to properly enable the interruption and how to use the handler.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-PULSE-EVENT-IRQHandler-constantly-fires/m-p/1947134/highlight/true#M31718" target="_blank"&gt;Solved: Re: SNVS_PULSE_EVENT_IRQHandler constantly fires... - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please follow that code and let me know if you are still experiencing the issue at hand.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 23:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013161#M231931</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-12-12T23:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1176 ONOFF short interruption</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013729#M231973</link>
      <description>&lt;P&gt;Following this method for initialization worked, I would like to add some patches that where required:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Had to apply this patch in the IRQ for proper clearing of status flags:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-PULSE-EVENT-IRQHandler-constantly-fires/m-p/2012336/highlight/true#M32903" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-PULSE-EVENT-IRQHandler-constantly-fires/m-p/2012336/highlight/true#M32903&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And move those outside the condition in the IRQ handler.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 16:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMXRT1176-ONOFF-short-interruption/m-p/2013729#M231973</guid>
      <dc:creator>achampoux</dc:creator>
      <dc:date>2024-12-13T16:02:44Z</dc:date>
    </item>
  </channel>
</rss>

