<?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>topic Re: KL27 Interrupt in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487454#M30052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the IAR IDE using KSDK V2.0 and FRDM-KL27Z board, just modify below code could generate using PTD1 pin to control the LED(PTB18):&lt;/P&gt;&lt;P&gt;&amp;lt;board.h&amp;gt;&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_GPIO GPIOD&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_PORT PORTD&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_GPIO_PIN 1U&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_IRQ PORTB_PORTC_PORTD_PORTE_IRQn&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_IRQ_HANDLER PORTBCDE_IRQHandler&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_NAME "SW3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pin_mux.c&amp;gt;&lt;/P&gt;&lt;P&gt;/* Enable gpio port clock */&lt;/P&gt;&lt;P&gt;//CLOCK_EnableClock(kCLOCK_PortC);&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_PortD);&lt;/P&gt;&lt;P&gt;/* Affects PORTC_PCR1 register */&lt;/P&gt;&lt;P&gt;port_pin_config_t config = {0};&lt;/P&gt;&lt;P&gt;config.pullSelect = kPORT_PullUp;&lt;/P&gt;&lt;P&gt;config.mux = kPORT_MuxAsGpio;&lt;/P&gt;&lt;P&gt;//PORT_SetPinConfig(PORTC, 1U, &amp;amp;config);&lt;/P&gt;&lt;P&gt;PORT_SetPinConfig(PORTD, 1U, &amp;amp;config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With above modification, I could using PTD1 pin control the LED.&lt;/P&gt;&lt;P&gt;I checked your code related place is same, while, I am not sure if you have modify the other places.&lt;/P&gt;&lt;P&gt;Could you using the KSDK V2.0 gpio demo [input_interrupt] re-generate related code and check if it works or not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 24 May 2016 07:32:23 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2016-05-24T07:32:23Z</dc:date>
    <item>
      <title>KL27 Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487453#M30051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I met a strange situation regarding the KL27 chip. I had one Freedom board and one board designed by myself.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied the projects in SDK_2.0_FRDM_KL27Z/boards/fdmkl27z/driver_examples/gpio/input_interrupt to my project.&lt;/P&gt;&lt;P&gt;I only modified the input trigger pin (from PTC1 to PTD1) for both boards and LED pin (PTB18 vs PTB19). I am using&lt;/P&gt;&lt;P&gt;KDS 3.2 with SDK 2.0 built for this chip. The SWD tool is the freedom board on-board one.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;The code works well on the Freedom board but won't get the interrupt triggered for my own board.&lt;/SPAN&gt; The code will turn on the LED at the beginning and blink once the interrupt is triggered. Therefore I know the code is running once I saw the LED turned on. If I use UART to dump the message, I found out the output freeze once the input trigger happened. Could it be&lt;/P&gt;&lt;P&gt;interrupt vector issue?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I found the same behavior for the PIT example. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please some one in the know could give me a hand!!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337551"&gt;PD1625.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 01:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487453#M30051</guid>
      <dc:creator>tonyenertron</dc:creator>
      <dc:date>2016-05-20T01:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: KL27 Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487454#M30052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the IAR IDE using KSDK V2.0 and FRDM-KL27Z board, just modify below code could generate using PTD1 pin to control the LED(PTB18):&lt;/P&gt;&lt;P&gt;&amp;lt;board.h&amp;gt;&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_GPIO GPIOD&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_PORT PORTD&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_GPIO_PIN 1U&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_IRQ PORTB_PORTC_PORTD_PORTE_IRQn&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_IRQ_HANDLER PORTBCDE_IRQHandler&lt;/P&gt;&lt;P&gt;#define BOARD_SW3_NAME "SW3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pin_mux.c&amp;gt;&lt;/P&gt;&lt;P&gt;/* Enable gpio port clock */&lt;/P&gt;&lt;P&gt;//CLOCK_EnableClock(kCLOCK_PortC);&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_PortD);&lt;/P&gt;&lt;P&gt;/* Affects PORTC_PCR1 register */&lt;/P&gt;&lt;P&gt;port_pin_config_t config = {0};&lt;/P&gt;&lt;P&gt;config.pullSelect = kPORT_PullUp;&lt;/P&gt;&lt;P&gt;config.mux = kPORT_MuxAsGpio;&lt;/P&gt;&lt;P&gt;//PORT_SetPinConfig(PORTC, 1U, &amp;amp;config);&lt;/P&gt;&lt;P&gt;PORT_SetPinConfig(PORTD, 1U, &amp;amp;config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With above modification, I could using PTD1 pin control the LED.&lt;/P&gt;&lt;P&gt;I checked your code related place is same, while, I am not sure if you have modify the other places.&lt;/P&gt;&lt;P&gt;Could you using the KSDK V2.0 gpio demo [input_interrupt] re-generate related code and check if it works or not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 24 May 2016 07:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487454#M30052</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-05-24T07:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: KL27 Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487455#M30053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the code based on the KSDK 2.0 GPIO demo （input interrupt）。I can run the program successfully on the freedom board. &lt;STRONG&gt;The problem is that I change the port and the code won't work on my own board. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried the PIT demo as well. The code could work on Freedom board but not on my own board. &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 02:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487455#M30053</guid>
      <dc:creator>tonyenertron</dc:creator>
      <dc:date>2016-05-25T02:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: KL27 Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487456#M30054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the PIT demo is only chip based, there without any relationship with external circuit.&lt;/P&gt;&lt;P&gt;If the PIT demo could not work on your designed board, I suspect the chip on your own board is broken.&lt;/P&gt;&lt;P&gt;You need to replace that chip and check if the PIT demo could work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 05:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-Interrupt/m-p/487456#M30054</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-05-26T05:52:42Z</dc:date>
    </item>
  </channel>
</rss>

