<?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 MKE02Z16VLC4 Uart Interrupts Not Firing in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554164#M7099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am have some trouble getting the two uarts of the MKE02Z16VLC4 to work properly on my board. Both the uarts are interrupt driven but only one of them works. I am able to send and receive from one uart but not the other.&lt;/P&gt;&lt;P&gt;The problem specifically lies to UART0, which has same configuration as UART1 (9600 8N1 no flow control) but the interrupts wouldn't work at all. I am trying to send a stream of data but I get only one Tx Interrupt (I am using XX_OnTxChar interrupt).&lt;/P&gt;&lt;P&gt;My code also has a PWM interrupt, a timer interrupt, an ADC interrupt and all of them function well except the UART.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone point me to the right direction?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 09:16:53 GMT</pubDate>
    <dc:creator>AnangBohra</dc:creator>
    <dc:date>2016-08-24T09:16:53Z</dc:date>
    <item>
      <title>MKE02Z16VLC4 Uart Interrupts Not Firing</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554164#M7099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am have some trouble getting the two uarts of the MKE02Z16VLC4 to work properly on my board. Both the uarts are interrupt driven but only one of them works. I am able to send and receive from one uart but not the other.&lt;/P&gt;&lt;P&gt;The problem specifically lies to UART0, which has same configuration as UART1 (9600 8N1 no flow control) but the interrupts wouldn't work at all. I am trying to send a stream of data but I get only one Tx Interrupt (I am using XX_OnTxChar interrupt).&lt;/P&gt;&lt;P&gt;My code also has a PWM interrupt, a timer interrupt, an ADC interrupt and all of them function well except the UART.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone point me to the right direction?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 09:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554164#M7099</guid>
      <dc:creator>AnangBohra</dc:creator>
      <dc:date>2016-08-24T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z16VLC4 Uart Interrupts Not Firing</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554165#M7100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anang&lt;/P&gt;&lt;P&gt;When disable the UART1, whether the UART0 can work well ?&lt;/P&gt;&lt;P&gt;If yes, maybe the interrupt problem.&lt;/P&gt;&lt;P&gt;If no, there is some problem about the configuration , please check .&lt;/P&gt;&lt;P&gt;you can also show me you configuration code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 04:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554165#M7100</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-25T04:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z16VLC4 Uart Interrupts Not Firing</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554166#M7101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;I am using KDS along with PE and it seems UART0 is not getting configured with PE so not sure where to look at.&lt;/P&gt;&lt;P&gt;I am basically just sending data every 50ms over UART0 or UART1 and have used PE to configure the UART0 on PIN 23, Pin24 of the micro (PA2, PA3).&lt;/P&gt;&lt;P&gt;If I send over UART1 then it works fine but if I send over UART0 then nothing comes out of the pin..Not sure if it has to do with UART0 clock or something..I am too new to Kinetis so dont know much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void TransmitReedSwitchData(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;unsigned char i;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;unsigned char retVal;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;reedSwData[2] = GetReedSwitchInfo();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0; i &amp;lt; 4; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SystemBusClearTransmitterReady();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;retVal |= SysBusIF_SendChar(reedSwData[i]); //USART1Write(bufferPtr-&amp;gt;data[i]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(retVal)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(!SystemBusIsTransmitterReady());&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flag below is set in the events.c file (interrupt routines)&lt;/P&gt;&lt;P&gt;void SystemBusSetTransmitterReady(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SB_DEVICE_SCI1_TX_EMPTY = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events.c file code..&lt;/P&gt;&lt;P&gt;void SysBusIF_OnTxComplete(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; /* Write your code here ... */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SystemBusSetTransmitterReady();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above code works fine with UART1 but not with UART0 ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 05:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554166#M7101</guid>
      <dc:creator>AnangBohra</dc:creator>
      <dc:date>2016-08-25T05:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02Z16VLC4 Uart Interrupts Not Firing</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554167#M7102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;- First please confirm the hardware is connect right, when use UART0 , use the pin of 23, 24&lt;/P&gt;&lt;P&gt;It is different with UART1 .&lt;/P&gt;&lt;P&gt;- After configure the PE component , the init code is in the function of "LDD_TDeviceData* ASerialLdd1_Init()" .&lt;/P&gt;&lt;P&gt;- You can set breakpoint to check whether it run to the function "&amp;nbsp;SysBusIF_SendChar()", then step by step check&lt;/P&gt;&lt;P&gt;whether sand data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I recommend you can directly use the component of "Serial_LDD " .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 03:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/MKE02Z16VLC4-Uart-Interrupts-Not-Firing/m-p/554167#M7102</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-08-26T03:47:59Z</dc:date>
    </item>
  </channel>
</rss>

