<?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>S32KのトピックRe: GPIO Interrupt on S32K148</title>
    <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095156#M8022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, the can_pal example project seems to have an error in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUTTON1 and BUTTON2 are PTC12 and PTC13 in the code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;however the interrupt settings in PEX are applied to PTC13 and PTC14:&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/109026iF9088A3B0AD0FE2A/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;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/108986i4322AD330B51C6E6/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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2020 13:38:16 GMT</pubDate>
    <dc:creator>m_mishrikey</dc:creator>
    <dc:date>2020-07-28T13:38:16Z</dc:date>
    <item>
      <title>GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095153#M8019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do something rather similar to what is described here, but so far without success:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/463183"&gt;Enable GPIO pin interrupt S32K144 MCU&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-343587"&gt;Example: S32K148 GPIO Interrupt &lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/428948"&gt;Multiple GPIO interrupts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I setup the pins PTD24 and PTD27 as inputs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108469iDDA1EC7D1B1EB804/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I configure them to interrupt on falling edge:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108515i489468F74A7D633C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the PEX settings I do not clear the flag, with the intention of doing so manually in the ISR handler.&amp;nbsp; (side question - I'm a bit confused about this - if you had PEX clear the flag, would that happen immediately after the ISR?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I create the ISR.&amp;nbsp; Because there are multiple interrupts, I check the intflags using the SDK calls.&amp;nbsp; Presently both interrupts take the same action.&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/108582iB605D74936AF07C0/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;Next, I install the handler, after PINS_DRV_Init().&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried it two ways:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108517i966583C94559C617/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and also this, with &amp;amp; in front of handler name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108587iA1F4A4F29731602C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;because some examples I've seen use the &amp;amp; notation.&amp;nbsp; (side note: I've even tried with the 2nd argument cast to isr_t since that what INT_SYS_InstallHandler expects.)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither approach works unfortunately.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to confirm a falling edge on the GPIO pin in question, however the code never triggers the interrupt or calls the handler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional note - despite the RTOS-like handler naming, I'm not doing anything with RTOS apart from what comes automatically with the PEX/SDK template.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is something else I am missing.&amp;nbsp; Examples seem pretty straightforward.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 03:53:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095153#M8019</guid>
      <dc:creator>m_mishrikey</dc:creator>
      <dc:date>2020-07-28T03:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095154#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Matthew Mishrikey,&lt;/P&gt;&lt;P&gt;Please refer the GPIO interrupt shown in can_pal_s32k148 example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="can_pal_s32k148.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108877iBD1FF21368492DA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="can_pal_s32k148.png" alt="can_pal_s32k148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="GPIO interrupt can_pal_s32k148.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108737i07DFAF578A6FA30B/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIO interrupt can_pal_s32k148.png" alt="GPIO interrupt can_pal_s32k148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Tue, 28 Jul 2020 09:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095154#M8020</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-07-28T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095155#M8021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin.&amp;nbsp; Unfortunately this example doesn't answer any questions (except that the example uses the &amp;amp;function notation).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any other prerequisites to the interrupt handler getting called, other than installing it, and specifying an interrupt type in the pin settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095155#M8021</guid>
      <dc:creator>m_mishrikey</dc:creator>
      <dc:date>2020-07-28T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095156#M8022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, the can_pal example project seems to have an error in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUTTON1 and BUTTON2 are PTC12 and PTC13 in the code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;however the interrupt settings in PEX are applied to PTC13 and PTC14:&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/109026iF9088A3B0AD0FE2A/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;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/108986i4322AD330B51C6E6/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:38:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095156#M8022</guid>
      <dc:creator>m_mishrikey</dc:creator>
      <dc:date>2020-07-28T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095157#M8023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Argh.&amp;nbsp; I made a mistake and was looking at the wrong pin the whole time.&amp;nbsp; Sorry!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN_PAL example is still setup wrong though, someone should check that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095157#M8023</guid>
      <dc:creator>m_mishrikey</dc:creator>
      <dc:date>2020-07-28T16:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095158#M8024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&amp;nbsp;Matthew Mishrikey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am glad to hear you find out the problem.&lt;/P&gt;&lt;P&gt;Thank you for the report, I'll inform the SDK team about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/GPIO-Interrupt-on-S32K148/m-p/1095158#M8024</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-07-30T08:55:44Z</dc:date>
    </item>
  </channel>
</rss>

