<?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のトピックRe: UART3_RX_TX_IRQHandler missing first byte in isr</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427020#M2363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jorge ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks for support. It is working fine but In my case i don't know the receiving packet length.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So that I can read complete packet without losing bytes or mixing with next packet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How i can check the SCI Idle status Flag in &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;K64F? I need example for this too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks &amp;amp; regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Rishi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 11:36:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-04T11:36:05Z</dc:date>
    <item>
      <title>UART3_RX_TX_IRQHandler missing first byte in isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427018#M2361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have problem in receiving bytes in ISR see below code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void UART3_RX_TX_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_DRV_IRQHandler(3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(inx&amp;gt;9)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inx=0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_HAL_Getchar(UART3, &amp;amp;RxBuff[inx]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inx++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I am sending 8 bytes (1,2,3,4,5,6,7,8) but first&amp;nbsp; receiving&amp;nbsp; is wrong RxBuff[0] =0xFF instead of 1 remaining 7 bytes are good.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY TX &amp;amp; RX pins are short.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suspect is RX interrupt is not enabled.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 04:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427018#M2361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T04:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: UART3_RX_TX_IRQHandler missing first byte in isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427019#M2362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rishi Kumar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to call the API &lt;STRONG&gt;UART_HAL_Getchar()&lt;/STRONG&gt;. This is already done inside of &lt;STRONG&gt;UART_DRV_IRQHandler()&lt;/STRONG&gt; and the Rx Buffer should be automatically filled with the received bytes, you only need to call the driver APIs &lt;STRONG&gt;UART_DRV_ReceiveData()&lt;/STRONG&gt; or &lt;STRONG&gt;UART_DRV_ReceiveDataBlocking()&lt;/STRONG&gt;. See the attached example I made for a FRDM-K64F. If you are using a different board just adjust the clock gate, uart instance and pins as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;:smileyinfo: NOTE:&lt;/STRONG&gt; This &lt;STRONG&gt;main.c&lt;/STRONG&gt; assumes that the file &lt;STRONG&gt;fsl_uart_irq.c&lt;/STRONG&gt; is already part of the project.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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>Mon, 30 Nov 2015 03:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427019#M2362</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-11-30T03:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: UART3_RX_TX_IRQHandler missing first byte in isr</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427020#M2363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jorge ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks for support. It is working fine but In my case i don't know the receiving packet length.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So that I can read complete packet without losing bytes or mixing with next packet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How i can check the SCI Idle status Flag in &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;K64F? I need example for this too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks &amp;amp; regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Rishi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 11:36:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART3-RX-TX-IRQHandler-missing-first-byte-in-isr/m-p/427020#M2363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-04T11:36:05Z</dc:date>
    </item>
  </channel>
</rss>

