<?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 Dropped bytes with K8x LPUART2 when J-Link disconnected in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774167#M47071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a K8x processor with its LPUART2 connected to an app on a PC.&amp;nbsp; (fsl_uart driver / 115200-N-8-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MCUXpresso running debug via J-Link, the communication channel is robust and reliable.&amp;nbsp; However, when the debug is terminated, then transmitted bytes (MCU-to-PC) are dropped.&amp;nbsp; If I remove the J-Link probe, then the same problem occurs.&amp;nbsp; &amp;nbsp;Received bytes (PC-to-MCU) are good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serial data is sent using LPUART_WriteBlocking(), which I note has the following ominous warning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* This API can only ensure that the data is written into the data buffer but can't&lt;BR /&gt; ensure all data in the data buffer are sent into the transmit shift buffer. */&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 00:37:20 GMT</pubDate>
    <dc:creator>deniscollis</dc:creator>
    <dc:date>2017-12-08T00:37:20Z</dc:date>
    <item>
      <title>Dropped bytes with K8x LPUART2 when J-Link disconnected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774167#M47071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a K8x processor with its LPUART2 connected to an app on a PC.&amp;nbsp; (fsl_uart driver / 115200-N-8-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MCUXpresso running debug via J-Link, the communication channel is robust and reliable.&amp;nbsp; However, when the debug is terminated, then transmitted bytes (MCU-to-PC) are dropped.&amp;nbsp; If I remove the J-Link probe, then the same problem occurs.&amp;nbsp; &amp;nbsp;Received bytes (PC-to-MCU) are good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serial data is sent using LPUART_WriteBlocking(), which I note has the following ominous warning:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* This API can only ensure that the data is written into the data buffer but can't&lt;BR /&gt; ensure all data in the data buffer are sent into the transmit shift buffer. */&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 00:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774167#M47071</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2017-12-08T00:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped bytes with K8x LPUART2 when J-Link disconnected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774168#M47072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="303172" data-username="deniscollis" href="https://community.nxp.com/people/deniscollis"&gt;Denis&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I don't know how did you connect MCU and PC. Sounds like the GND is not well connected. &lt;BR /&gt;You can also observing the LPUART2_TX data using oscilloscope.&lt;/P&gt;&lt;P&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>Mon, 11 Dec 2017 09:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774168#M47072</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-12-11T09:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropped bytes with K8x LPUART2 when J-Link disconnected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774169#M47073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/robinshen"&gt;robinshen&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCU is connected to PC via Serial/TTL-to-USB cable (FTDI).&amp;nbsp; I think that you may be right that the fault is GND (or power) related, and the JTAG connection has the effect of stabilizing it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I'm sure this has nothing to do with the fsl_uart driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 22:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dropped-bytes-with-K8x-LPUART2-when-J-Link-disconnected/m-p/774169#M47073</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2017-12-11T22:53:47Z</dc:date>
    </item>
  </channel>
</rss>

