<?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 Software Development KitのトピックINT_SYS_InstallHandler call stuck</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/INT-SYS-InstallHandler-call-stuck/m-p/610995#M6323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to install an interrupt handler for GPIO on K64 twr kit using KSDK 1.2.0. These are the steps I am following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_EnablePortClock(PORTE_IDX);&lt;BR /&gt; PORT_HAL_SetMuxMode (PORTE, 6, kPortMuxAsGpio );&lt;BR /&gt; GPIO_HAL_SetPinDir(PTE_BASE_PTR, 6, kGpioDigitalInput);&lt;BR /&gt; INT_SYS_InstallHandler(PORTE_IRQn, BSP_GPIO_IRQHandlerPortE);&lt;BR /&gt; PORT_HAL_SetPinIntMode(PORTE, 6, kPortDmaRisingEdge );&lt;BR /&gt; NVIC_SetPriority(PORTE_IRQn, 0);&lt;BR /&gt; INT_SYS_EnableIRQ(PORTE_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the call to InstallHandler is stuck, what could be the reason for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 22:49:25 GMT</pubDate>
    <dc:creator>sandeepthota</dc:creator>
    <dc:date>2017-03-01T22:49:25Z</dc:date>
    <item>
      <title>INT_SYS_InstallHandler call stuck</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/INT-SYS-InstallHandler-call-stuck/m-p/610995#M6323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to install an interrupt handler for GPIO on K64 twr kit using KSDK 1.2.0. These are the steps I am following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_EnablePortClock(PORTE_IDX);&lt;BR /&gt; PORT_HAL_SetMuxMode (PORTE, 6, kPortMuxAsGpio );&lt;BR /&gt; GPIO_HAL_SetPinDir(PTE_BASE_PTR, 6, kGpioDigitalInput);&lt;BR /&gt; INT_SYS_InstallHandler(PORTE_IRQn, BSP_GPIO_IRQHandlerPortE);&lt;BR /&gt; PORT_HAL_SetPinIntMode(PORTE, 6, kPortDmaRisingEdge );&lt;BR /&gt; NVIC_SetPriority(PORTE_IRQn, 0);&lt;BR /&gt; INT_SYS_EnableIRQ(PORTE_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the call to InstallHandler is stuck, what could be the reason for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/INT-SYS-InstallHandler-call-stuck/m-p/610995#M6323</guid>
      <dc:creator>sandeepthota</dc:creator>
      <dc:date>2017-03-01T22:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: INT_SYS_InstallHandler call stuck</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/INT-SYS-InstallHandler-call-stuck/m-p/610996#M6324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep Thota,&lt;/P&gt;&lt;P&gt;&amp;nbsp; KSDK1.2 is very older, please download the newest KSDK2.1-TWR-K64F120M code from this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://kex.freescale.com/en/welcome"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Click build an SDK, and choose the board as TWR-K64F120M, generate the code and download it.&lt;/P&gt;&lt;P&gt;We can modify the SDK_2.1_TWR-K64F120M\boards\twrk64f120m\driver_examples\gpio\input_interrupt&lt;/P&gt;&lt;P&gt;Add PTE6 input falling interrupt code:&lt;/P&gt;&lt;P&gt;void PORTE_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; GPIO_ClearPinsInterruptFlags(GPIOE, 1U &amp;lt;&amp;lt; 6);&lt;BR /&gt;&amp;nbsp; g_ButtonPress = true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;In main function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio_pin_config_t pte6_config = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kGPIO_DigitalInput, 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_SetPinInterruptConfig(PORTE, 6, kPORT_InterruptFallingEdge);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableIRQ(PORTE_IRQn);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PinInit(GPIOE, 6, &amp;amp;pte6_config);&lt;/P&gt;&lt;P&gt;Then, after you pull down the PTE6, you will enter the PTE6 handler.&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/14884i9145E8D08C6454BB/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;I also attach the gpio_input_interrupt.c for your reference, you can unzip it to folder : SDK_2.1_TWR-K64F120M\boards\twrk64f120m\driver_examples\gpio\input_interrupt&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>Tue, 07 Mar 2017 03:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/INT-SYS-InstallHandler-call-stuck/m-p/610996#M6324</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-07T03:19:17Z</dc:date>
    </item>
  </channel>
</rss>

