<?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: Guide on MXRT1050/1052 Interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066254#M156708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="349817" data-username="jamesk@singulargenomics.com" href="https://community.nxp.com/people/jamesk@singulargenomics.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;james kim&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tody, I test the GPIO1_3 highlevel interrupt, it works OK, and the interrupt can be cleaned.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, your issue should still in the code side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please check my attached project which is based on the C code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have tested it, it works OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;When your&amp;nbsp;GPIO_AD_B0_03_GPIO1_IO0 input high level, the interrupt will be triggered, then you input&amp;nbsp;GPIO_AD_B0_03_GPIO1_IO0 as low, the printf will give the related log&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/108828iA1888C6C798814AB/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;&lt;/P&gt;&lt;P&gt;You also can check my project, if you are using the MIMXRT1050-EVKB board, the GPIO pin is J24-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #646464; font-weight: inherit; font-size: 14px; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you still have question about it, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2020 04:40:08 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-06-02T04:40:08Z</dc:date>
    <item>
      <title>Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066249#M156703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a small section dedicated for i.MX RT1050 Interrupts in Chapter 4 but it covers on which interrupts are available on the processor and DOES NOT provide any detail information on GPIO interrupts.&lt;/P&gt;&lt;P&gt;I am looking for detail explanation on&lt;/P&gt;&lt;P&gt;1) how to use the first 8 GPIO1 interrupts (which are marked to be for "active high interrupt)&lt;/P&gt;&lt;P&gt;2) how to use the Combined interrupts which seem to have been grouped in 2 sets of 16 signals on each GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NXP example project is too simple to have thorough understanding of exactly how to use the interrupts in more complicated use cases where there are several interrupts to be handled in combination of active high, active low, rising, &amp;amp; falling edge based interrupts on same GPIO port (1, 2, 3, 4, 5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help is much appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2020 21:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066249#M156703</guid>
      <dc:creator>jamesk</dc:creator>
      <dc:date>2020-05-24T21:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066250#M156704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="349817" data-username="jamesk@singulargenomics.com" href="https://community.nxp.com/people/jamesk@singulargenomics.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;james kim&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Do you mean the following GPIO IRQ part:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&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/107564i45A85E2DBA4688BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Normally, each GPIO is divided to use 2 IRQ, one is for GPIOn 0-15, another is for 16-31.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; You can understand that&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;GPIOn 0-15 share one IRQ,&amp;nbsp;&amp;nbsp;GPIOn &lt;SPAN&gt;16-31 share the other IRQ.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;The detail configuration for the shared GPIO IRQ can be found in the RM&amp;nbsp;Chapter 12&lt;BR /&gt;General Purpose Input/Output (GPIO), you can find related register, ICR, IMR, ISR. etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; The SDK sample code is used this combined mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;But GPIO1 is special, it is related to the INT0-7,&amp;nbsp;you can refer to this post:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" class="jivelink10" href="https://community.nxp.com/thread/303144" title="https://community.nxp.com/thread/303144"&gt;https://community.nxp.com/thread/303144&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; My understanding is the INT0-INT7 is related to the GPIO1_0 to GPIO1_7, then the active HIGH interrupt, you can try to configure ICR1_ICR0 to ICR1_ICR7 to 01b&amp;nbsp;- Interrupt n is high-level sensitive, then enable the related IRQ, and check whether it works or not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; You can try it on your side.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you still have question about it, please kindly let me know.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 06:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066250#M156704</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-05-26T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066251#M156705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info Kerry.&lt;/P&gt;&lt;P&gt;I followed the NXP GPIO input example but I am getting&amp;nbsp;&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/108476iA1BD24B5700E15FE/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;&lt;/P&gt;&lt;P&gt;Debug trace shows me that there is an issue with IRQ Handler:&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/108477i543637069740B674/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;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108478i4FE7E69FC9689ECC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly following the example, I added the following in my code:&lt;/P&gt;&lt;P&gt;Honestly this is really a magic to me and I don't understand how this #define works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define GPIO1_Combo_0_15_IRQHandler GPIO1_Combined_0_15_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GPIO1_Combo_0_15_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;uint32_t interrupt_status = GPIO_PortGetInterruptFlags(gpio5);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;// Check for registered interrupt callback&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;for (uint32_t i = 0; i &amp;lt; sizeof(interrupt_status); i++)&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;if (interrupt_status &amp;amp; 1U &amp;lt;&amp;lt; i)&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;{&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;// Invoke registered callback&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;// Clear the interrupt status&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;GPIO_PortClearInterruptFlags(gpio5, 1U &amp;lt;&amp;lt; i);&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;}&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interrupt fault occurs right at the end of the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EnableIRQ(GPIO1_Combined_0_15_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpio_config.direction = kGPIO_DigitalInput;&lt;BR /&gt;gpio_config.interruptMode = kGPIO_IntLowLevel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIO_PinInit(GPIO1, 3, &amp;amp;gpio_config);&lt;/P&gt;&lt;P&gt;GPIO_PortEnableInterrupts(GPIO1, 1U &amp;lt;&amp;lt; 3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 08:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066251#M156705</guid>
      <dc:creator>jamesk</dc:creator>
      <dc:date>2020-05-28T08:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066252#M156706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="349817" data-username="jamesk@singulargenomics.com" href="https://community.nxp.com/people/jamesk@singulargenomics.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;james kim&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Which detail pin you want to as the GPIO interrupt?&amp;nbsp;IOMUXC_GPIO_AD_B0_03_GPIO1_IO03, this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If yes, do you configure this pin as the GPIO function in the pin_mux.c?&lt;/P&gt;&lt;P&gt;IOMUXC_SetPinMux(&lt;BR /&gt;IOMUXC_GPIO_AD_B0_03_GPIO1_IO03,&amp;nbsp;&lt;BR /&gt; 0U);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GPIO interrupt configure code should be:&lt;/P&gt;&lt;P&gt;gpio_pin_config_t sw_config = {&lt;BR /&gt; kGPIO_DigitalInput,&lt;BR /&gt; 0,&lt;BR /&gt; kGPIO_IntRisingEdge,&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EnableIRQ(GPIO1_Combined_0_15_IRQn);&lt;BR /&gt; GPIO_PinInit(&lt;SPAN&gt;GPIO1&lt;/SPAN&gt;, 3U, &amp;amp;sw_config);&lt;/P&gt;&lt;P&gt;/* Enable GPIO pin interrupt */&lt;BR /&gt; GPIO_PortEnableInterrupts(&lt;SPAN&gt;GPIO1&lt;/SPAN&gt;, 1U &amp;lt;&amp;lt; 3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define EXAMPLE_GPIO_IRQHandler GPIO1_Combined_0_15_IRQHandler&lt;/P&gt;&lt;P&gt;void EXAMPLE_GPIO_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; /* clear the interrupt status */&lt;BR /&gt; GPIO_PortClearInterruptFlags(&lt;SPAN&gt;GPIO1&lt;/SPAN&gt;, 1U &amp;lt;&amp;lt; &lt;SPAN&gt;3&lt;/SPAN&gt;);&lt;BR /&gt; /* Change state of switch. */&lt;BR /&gt; g_InputSignal = true;&lt;BR /&gt; /* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping&lt;BR /&gt; exception return operation might vector to incorrect interrupt */&lt;BR /&gt;#if defined __CORTEX_M &amp;amp;&amp;amp; (__CORTEX_M == 4U)&lt;BR /&gt; __DSB();&lt;BR /&gt;#endif&lt;BR /&gt;}&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/108534i47680CEBFE149F45/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;&lt;/P&gt;&lt;P&gt;Then you can write the interrupt handler code in the&amp;nbsp;&lt;SPAN&gt;EXAMPLE_GPIO_IRQHandler&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;EXAMPLE_GPIO_IRQHandler&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;GPIO1_Combined_0_15_IRQHandler, just redefine the&amp;nbsp;interrupt handler name.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I suggest you test the SDK GPIO interrupt sample code directly at first, after it works, then you can modify the GPIO pin to your own pin.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;If you still have issues about it, please kindly let me know.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Wish it helps you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px currentcolor; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px currentcolor; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px currentcolor; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px currentcolor; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px currentcolor; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 02:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066252#M156706</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-05-29T02:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066253#M156707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Kerry.&lt;/P&gt;&lt;P&gt;Your comments gave me a clue. The issue was with naming mangling between C and C++. My code is written in C++. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I still have an issue with IRQHandler being called forever even after having cleared interrupt with this API:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;GPIO_PortClearInterruptFlags(&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;GPIO1&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;, 1U &amp;lt;&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I set the interrupt mode of the GPIO1 Pin3 to be HighLevel and I am expecting that the interrupt be triggered while the pin is driven high. But the interrupt is forever triggered even after I ground the pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Perhaps I am not understanding how the interrupt mode is supposed to be set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Could you explain what determines a GPIO input be configured to be low, high, rising, falling, &amp;amp; edge triggering?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Perhaps I need to clear the interrupt flag differently?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Your help is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;James&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 08:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066253#M156707</guid>
      <dc:creator>jamesk</dc:creator>
      <dc:date>2020-05-29T08:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Guide on MXRT1050/1052 Interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066254#M156708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="349817" data-username="jamesk@singulargenomics.com" href="https://community.nxp.com/people/jamesk@singulargenomics.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;james kim&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tody, I test the GPIO1_3 highlevel interrupt, it works OK, and the interrupt can be cleaned.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, your issue should still in the code side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please check my attached project which is based on the C code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have tested it, it works OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;When your&amp;nbsp;GPIO_AD_B0_03_GPIO1_IO0 input high level, the interrupt will be triggered, then you input&amp;nbsp;GPIO_AD_B0_03_GPIO1_IO0 as low, the printf will give the related log&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/108828iA1888C6C798814AB/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;&lt;/P&gt;&lt;P&gt;You also can check my project, if you are using the MIMXRT1050-EVKB board, the GPIO pin is J24-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #646464; font-weight: inherit; font-size: 14px; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you still have question about it, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Guide-on-MXRT1050-1052-Interrupt/m-p/1066254#M156708</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-06-02T04:40:08Z</dc:date>
    </item>
  </channel>
</rss>

