<?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: the problem about UART isr in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456609#M4686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi wang, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take a look at these documents :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103966"&gt;How To: Using Interrupt Handlers in MQX with KSDK&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Interrupt handling with PE&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104352"&gt;Interrupt handling with KSDK and Kinetis Design Studio&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 11:31:01 GMT</pubDate>
    <dc:creator>ivadorazinova</dc:creator>
    <dc:date>2015-09-18T11:31:01Z</dc:date>
    <item>
      <title>the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456605#M4682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;hello ,it's about the problem about UART ISR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;I used to compile environment is KDS3.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;Using a KSDK1.2 and MQX4.2,and my board is frdmk64f&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;I want to rec data form uart with ISR&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;but when I install the uart0 isr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt;"&gt;the Interrupt handler is &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;constantly&lt;/SPAN&gt; triggered, whatever I have to send or receive data from UART0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt;"&gt;I don't know what's the problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt;"&gt;Is it because UART0 is the default input port？&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;In addition, I want to know why&amp;nbsp; the code “&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;printf("\ncounter = %d\n", g_isr_data.COUNTER);&lt;/SPAN&gt;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="margin-bottom: 0.4em; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;could output data to uart0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tgt" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="tgt" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="tgt" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;void new_isr(void *user_isr_ptr)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;{&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; MY_ISR_STRUCT_PTR&amp;nbsp; isr_ptr;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; isr_ptr = (MY_ISR_STRUCT_PTR)user_isr_ptr;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; isr_ptr-&amp;gt;COUNTER++;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; /* It is common to chain interrupts */&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp; /* isr_ptr-&amp;gt;OLD_ISR(isr_ptr-&amp;gt;OLD_ISR_DATA); */&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;main_task(){&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;INT_SYS_EnableIRQ(SW_IRQ);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /** Demonstration of mqx interrupt installation. Works with vector table placed in RW as well as RO memory **/&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_isr_data.COUNTER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_isr_data.OLD_ISR_DATA = _int_get_isr_data(SW_IRQ);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_isr_data.OLD_ISR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = _int_get_isr(SW_IRQ);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Install MQX isr routine. This function does not change vector table */&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; old_isr = _int_install_isr(SW_IRQ, new_isr, &amp;amp;g_isr_data);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 01:42:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456605#M4682</guid>
      <dc:creator>wyflsxy</dc:creator>
      <dc:date>2015-09-17T01:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456606#M4683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my project is build with ksdk1.2 with out PE,how can I change the "printf" output from UART0 to UART1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 06:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456606#M4683</guid>
      <dc:creator>wyflsxy</dc:creator>
      <dc:date>2015-09-17T06:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456607#M4684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;wang yufei,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;please what do you use for MCU? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 08:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456607#M4684</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-09-17T08:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456608#M4685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;what did you mean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I want to &lt;SPAN style="color: #2b2b2b; font-family: arial, sans-serif; background-color: #fafafa;"&gt;receive &lt;/SPAN&gt;data form uart by &lt;SPAN style="color: #2b2b2b; font-family: arial, sans-serif; background-color: #fafafa;"&gt;interrupt&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; font-family: arial, sans-serif; font-size: 12pt; background-color: #fafafa;"&gt;but,when I install a uart0 &lt;SPAN style="color: #2b2b2b; font-family: arial, sans-serif; background-color: #fafafa;"&gt;interrupt about like "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;_int_install_isr(SW_IRQ, new_isr, &amp;amp;g_isr_data);"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #fafafa; color: #51626f; font-size: 12pt; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;the interrupt funtion "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;new_isr()&lt;/SPAN&gt;"was &lt;SPAN style="font-style: inherit; font-family: arial, sans-serif; color: #2b2b2b; background-color: #fafafa;"&gt;constantly&lt;/SPAN&gt;&lt;SPAN style="color: #2b2b2b; font-family: arial, sans-serif; background-color: #fafafa;"&gt; triggered, whatever I havn't send or receive data from UART0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #fafafa; color: #2b2b2b; font-size: 12pt; font-family: arial, sans-serif;"&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Alice_Yang"&gt;Alice_Yang&lt;/A&gt;​&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Hui_Ma"&gt;Hui_Ma&lt;/A&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 08:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456608#M4685</guid>
      <dc:creator>wyflsxy</dc:creator>
      <dc:date>2015-09-17T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456609#M4686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi wang, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take a look at these documents :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103966"&gt;How To: Using Interrupt Handlers in MQX with KSDK&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Interrupt handling with PE&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104352"&gt;Interrupt handling with KSDK and Kinetis Design Studio&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 11:31:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456609#M4686</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-09-18T11:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: the problem about UART isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456610#M4687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw the demo and found that it need to clear the interrupt flag bit in GPIO interrupt program with "GPIO_DRV_ClearPinIntFlag (kGpioSW2);"&lt;/P&gt;&lt;P&gt;So&amp;nbsp; did the UART interrupt program also need to clear the interrupt flag ?&lt;/P&gt;&lt;P&gt;however I did not found the clear interrupt flag programe for uart in the API or the&amp;nbsp; header files?&lt;/P&gt;&lt;P&gt;could you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 05:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/the-problem-about-UART-isr/m-p/456610#M4687</guid>
      <dc:creator>wyflsxy</dc:creator>
      <dc:date>2015-09-21T05:52:51Z</dc:date>
    </item>
  </channel>
</rss>

