<?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のトピックRe: Configuring SNVS button interrupt at M4</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-SNVS-button-interrupt-at-M4/m-p/647340#M98891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you configured the pin in the Device Tree to work as GPIO and use interrupts? The Device Tree describes all the hardware in the MCU. Please take a look to following links for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsaurabhsengarblog.wordpress.com%2F2015%2F11%2F28%2Fdevice-tree-tutorial-arm%2F" rel="nofollow" target="_blank"&gt;Device Tree Tutorial (ARM) | Linux Kernel For Newbies&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="2004" data-containertype="14" data-objectid="310091" data-objecttype="1" href="https://community.nxp.com/thread/310091"&gt;Configure GPIO as interrupt source&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F20656006%2Fdefault-config-of-gpios-using-device-tree-freescale-i-mx6" rel="nofollow" target="_blank"&gt;Default config of GPIO's using device tree - Freescale i.MX6 - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="2004" data-containertype="14" data-objectid="317876" data-objecttype="1" href="https://community.nxp.com/thread/317876"&gt;Any examples on how to modify the .dts (device tree) source for custom hardware?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&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>Wed, 01 Mar 2017 21:55:40 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2017-03-01T21:55:40Z</dc:date>
    <item>
      <title>Configuring SNVS button interrupt at M4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-SNVS-button-interrupt-at-M4/m-p/647339#M98890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on custom board with iMX7S. I am trying to configure SNVS button debounce interrupt at M4 to give periodic Interrupt at every&amp;nbsp;500ms if button is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code snippet:&lt;/P&gt;&lt;P&gt;void PowerButton_Config( uint8_t config_ )&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;uint32_t temp; //temp. variable to hold read values&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;uint32_t newValues; //for applying mask&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;&amp;nbsp;newValues = SNVS_LPCR_ON_TIME(PWRBTN_OFF2ON_TIME_500MS ) | &amp;nbsp; &amp;nbsp; SNVS_LPCR_DEBOUNCE(PWRBTN_DEBOUNCE_TIME_500MS )&lt;BR /&gt; | SNVS_LPCR_BTN_PRESS_TIME(PWRBTN_ON2OFF_TIME_DISABLED );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;temp = SNVS_LPCR_REG( SNVS_BASE_PTR );&lt;BR /&gt; temp = temp &amp;amp; 0xFFC0FFFF;&lt;BR /&gt; temp = newValues | temp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SNVS_LPCR_REG (SNVS_BASE_PTR ) = temp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;//Button Interrupt Configuration to give interrupt at both edges&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SNVS_HPCR_REG( SNVS_BASE_PTR ) &amp;amp;= ~( SNVS_HPCR_BTN_CONFIG_MASK &amp;amp; ( 4 &amp;lt;&amp;lt; SNVS_HPCR_BTN_CONFIG_SHIFT ));&lt;BR /&gt; SNVS_HPCR_REG( SNVS_BASE_PTR ) |= SNVS_HPCR_BTN_MASK_MASK;&lt;BR /&gt; NVIC_SetPriority( BOARD_SNVS_IRQ_NUM, 3 );&lt;BR /&gt; NVIC_EnableIRQ( BOARD_SNVS_IRQ_NUM );&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with&amp;nbsp;this configuration a single interrupt is received but both cores M4 and A7 get hung.&lt;/P&gt;&lt;P&gt;Please help with configuration here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 11:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-SNVS-button-interrupt-at-M4/m-p/647339#M98890</guid>
      <dc:creator>shrinathwadkar</dc:creator>
      <dc:date>2017-02-19T11:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring SNVS button interrupt at M4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-SNVS-button-interrupt-at-M4/m-p/647340#M98891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you configured the pin in the Device Tree to work as GPIO and use interrupts? The Device Tree describes all the hardware in the MCU. Please take a look to following links for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsaurabhsengarblog.wordpress.com%2F2015%2F11%2F28%2Fdevice-tree-tutorial-arm%2F" rel="nofollow" target="_blank"&gt;Device Tree Tutorial (ARM) | Linux Kernel For Newbies&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="2004" data-containertype="14" data-objectid="310091" data-objecttype="1" href="https://community.nxp.com/thread/310091"&gt;Configure GPIO as interrupt source&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F20656006%2Fdefault-config-of-gpios-using-device-tree-freescale-i-mx6" rel="nofollow" target="_blank"&gt;Default config of GPIO's using device tree - Freescale i.MX6 - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="2004" data-containertype="14" data-objectid="317876" data-objecttype="1" href="https://community.nxp.com/thread/317876"&gt;Any examples on how to modify the .dts (device tree) source for custom hardware?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&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>Wed, 01 Mar 2017 21:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-SNVS-button-interrupt-at-M4/m-p/647340#M98891</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-03-01T21:55:40Z</dc:date>
    </item>
  </channel>
</rss>

