<?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: Why LPUART2 IRQHandler not working? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-LPUART2-IRQHandler-not-working/m-p/770668#M46886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you try to configure PTD2 and PTD3 as LPUART2 function and enable the clock gate of Port D?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BOARD_InitPins.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21615iEFEB4D42795BA21D/image-size/large?v=v2&amp;amp;px=999" role="button" title="BOARD_InitPins.png" alt="BOARD_InitPins.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you are using TWR-KL82Z72M or FRDM-KL82Z, the PTD2 is used for other function by default. You should notice the hardware circuit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTD2 FRDM-KL82Z.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21660i6AECCA633BDA2C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTD2 FRDM-KL82Z.png" alt="PTD2 FRDM-KL82Z.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTD2 TWR-KL82Z72M.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21706iEDDAC71F127EB48C/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTD2 TWR-KL82Z72M.png" alt="PTD2 TWR-KL82Z72M.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 style="min- padding: 0px;"&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, 22 May 2018 09:14:26 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2018-05-22T09:14:26Z</dc:date>
    <item>
      <title>Why LPUART2 IRQHandler not working?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-LPUART2-IRQHandler-not-working/m-p/770667#M46885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MKL82Z MCU, and kinetis sdk 2.3 libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;initialized LPUART2 interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SetLpuartClock(1); &lt;BR /&gt; lpuart_config_t config;&lt;BR /&gt; LPUART_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt; config.baudRate_Bps = 115200;&lt;BR /&gt; config.enableTx = true;&lt;BR /&gt; config.enableRx = true;&lt;/P&gt;&lt;P&gt;LPUART_Init(LPUART2, &amp;amp;config, CLOCK_GetFreq(kCLOCK_PllFllSelClk));&lt;BR /&gt; LPUART_EnableInterrupts(LPUART2, kLPUART_RxDataRegFullInterruptEnable);&lt;BR /&gt; EnableIRQ(LPUART2_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My lpuart2 irq handel function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void LPUART2_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uint32_t Status_Flag = LPUART_GetStatusFlags(LPUART2);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for(size_t i = 0; i &amp;lt; 5; i++)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ToggleLed(1);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delayMs(30);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Never falls into the &lt;SPAN&gt;LPUART2_IRQHandler&amp;nbsp;&lt;/SPAN&gt;function.&lt;/P&gt;&lt;P&gt;why this is happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 12:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-LPUART2-IRQHandler-not-working/m-p/770667#M46885</guid>
      <dc:creator>rysardsuboc</dc:creator>
      <dc:date>2018-05-21T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why LPUART2 IRQHandler not working?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-LPUART2-IRQHandler-not-working/m-p/770668#M46886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you try to configure PTD2 and PTD3 as LPUART2 function and enable the clock gate of Port D?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BOARD_InitPins.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21615iEFEB4D42795BA21D/image-size/large?v=v2&amp;amp;px=999" role="button" title="BOARD_InitPins.png" alt="BOARD_InitPins.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you are using TWR-KL82Z72M or FRDM-KL82Z, the PTD2 is used for other function by default. You should notice the hardware circuit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTD2 FRDM-KL82Z.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21660i6AECCA633BDA2C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTD2 FRDM-KL82Z.png" alt="PTD2 FRDM-KL82Z.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTD2 TWR-KL82Z72M.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21706iEDDAC71F127EB48C/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTD2 TWR-KL82Z72M.png" alt="PTD2 TWR-KL82Z72M.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 style="min- padding: 0px;"&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, 22 May 2018 09:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-LPUART2-IRQHandler-not-working/m-p/770668#M46886</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-05-22T09:14:26Z</dc:date>
    </item>
  </channel>
</rss>

