<?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 MK66 communication issue with virtual COM port via USB in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956876#M54918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need your support please! The communication issue happens with simple setup.&lt;/P&gt;&lt;P&gt;MK66 works as slave and is connected to Linux (Ubuntu or Astra) WS. The MK66 executes "echo" application. I.e. it returns back the data received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running following repeating sequence on the WS gives communication error:&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call open.&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call write (9 bytes transfer via COM).&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;read (9 bytes reception from COM).&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call close.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;this gives the communication error once per 1000 cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worth to remark that:&lt;/P&gt;&lt;P&gt;1) disabling the modem lines (&lt;SPAN style="font-size: 11pt;"&gt;CLOCAL&lt;/SPAN&gt;)&amp;nbsp;on the WS side helps to avoid the issue.&lt;/P&gt;&lt;P&gt;But unfortunately according to the existing setup specific, the host side cannot be changed/updated.&lt;/P&gt;&lt;P&gt;2) In case we remove Open/Close from the loop, the issue disappears. But again this is already existing protocol, which we cannot modify unfortunately.&lt;/P&gt;&lt;P&gt;3) USB cable is shielded&lt;/P&gt;&lt;P&gt;4) using Windows based WS reduce number or communication errors due to Windows USB driver specific, which tries to recover automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to find the workaround on the MK66 side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2019 12:45:34 GMT</pubDate>
    <dc:creator>vyacheslavguzhv</dc:creator>
    <dc:date>2019-10-23T12:45:34Z</dc:date>
    <item>
      <title>MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956876#M54918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need your support please! The communication issue happens with simple setup.&lt;/P&gt;&lt;P&gt;MK66 works as slave and is connected to Linux (Ubuntu or Astra) WS. The MK66 executes "echo" application. I.e. it returns back the data received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running following repeating sequence on the WS gives communication error:&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call open.&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call write (9 bytes transfer via COM).&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;read (9 bytes reception from COM).&lt;/LI&gt;&lt;LI style="margin: 0in 0in 0pt;"&gt;Call close.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;this gives the communication error once per 1000 cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worth to remark that:&lt;/P&gt;&lt;P&gt;1) disabling the modem lines (&lt;SPAN style="font-size: 11pt;"&gt;CLOCAL&lt;/SPAN&gt;)&amp;nbsp;on the WS side helps to avoid the issue.&lt;/P&gt;&lt;P&gt;But unfortunately according to the existing setup specific, the host side cannot be changed/updated.&lt;/P&gt;&lt;P&gt;2) In case we remove Open/Close from the loop, the issue disappears. But again this is already existing protocol, which we cannot modify unfortunately.&lt;/P&gt;&lt;P&gt;3) USB cable is shielded&lt;/P&gt;&lt;P&gt;4) using Windows based WS reduce number or communication errors due to Windows USB driver specific, which tries to recover automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to find the workaround on the MK66 side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 12:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956876#M54918</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-23T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956877#M54919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Vyacheslav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rapid workaround I could suggest is to try to resent the same package when this fails and if the USB interface is getting stuck reinitialize the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also could you identify the reason the code is getting after all the iterations? Is the memory buffer full? Or did you identify the error status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 19:44:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956877#M54919</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-23T19:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956878#M54920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer and great support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tricky point is that we integrate the device into existing infrastructure, &lt;/P&gt;&lt;P&gt;where the COM-host devices are released in the field and cannot be changed. In &lt;/P&gt;&lt;P&gt;fact they work fine with other COM slaves from other suppliers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore the only acceptable solution unfortunately is the COM-slave &lt;/P&gt;&lt;P&gt;modification (MK66 based).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error can happen on write or read operations in any time. The code 0 (EOF) &lt;/P&gt;&lt;P&gt;is returned, the errno = (EIO 5 Input/output error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I/O buffers may remain empty, i.e. the error can happen during the first &lt;/P&gt;&lt;P&gt;byte transmission.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:11:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956878#M54920</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-24T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956879#M54921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Vyacheslav,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I think this is related to the errate mentioned in the following document:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/errata/KINETIS_K_0N65N.pdf" title="https://www.nxp.com/docs/en/errata/KINETIS_K_0N65N.pdf"&gt;https://www.nxp.com/docs/en/errata/KINETIS_K_0N65N.pdf&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This document also mention a workaround for this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Let me know if this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956879#M54921</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-24T19:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956880#M54922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you mean the error “e8807” i think its not our case. As the USB works in HS mode, as the slave and clocked from external clock (12mHz) multiplied by 40 and connected to USBPHYPLLCLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest if this is the case you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956880#M54922</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-25T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956881#M54923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vyacheslav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not clarifying, I mean the&amp;nbsp;e7919.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956881#M54923</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-25T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956882#M54924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The e7919 is about USBx_SOFTHLD. The SOF Threshold Register is used only in &lt;/P&gt;&lt;P&gt;Host mode (HOSTMODEEN=1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our case the device is not host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 08:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956882#M54924</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-28T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956883#M54925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find attached the sample to reproduce the issue and the Linux client to work together.&lt;/P&gt;&lt;P&gt;Customer uses RTSO, but even w/o it the issue is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956883#M54925</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-29T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956884#M54926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you don't find a solution take a look at the uTasker USB-CDC support for K66 HS and FS interfaces. The project is available as free open source or professionally supported and its quality CDC implementation ensures performance, efficiency and robustness as proven in many industrial products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&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;EM&gt;Complete Kinetis solutions for faster/more efficient professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;i.MX RT project compatibility: &lt;A href="http://www.utasker.com/iMX.html" target="test_blank"&gt;http://www.utasker.com/iMX.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Including FreeRTOS integration for all Kinetis parts&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Kinetis K66:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K65F180M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-K66F.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-K66F.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TEENSY_3.6.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.6.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;USB-CDC Host/device connection video: &lt;A href="https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16" target="test_blank"&gt;https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/512558" target="test_blank"&gt;https://community.nxp.com/thread/512558&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/352862" target="test_blank"&gt;https://community.nxp.com/thread/352862&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/thread/498809" target="test_blank"&gt;https://community.nxp.com/thread/498809&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 22:43:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956884#M54926</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-10-29T22:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956885#M54927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vyacheslav,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Testing your code what I could see is that sometimes when a package is send it from the CPU, the content is not the same size and the content is different from the one is sent and your code doesn't handle transmission that are less than 9 bytes so if there's a problem with the communication the device is not put to receive anymore. Adding this to handle receptions less than 9 bytes resolve the stuck problem. Could you let me know if this behavior is like the one your seeing in your side?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 01:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956885#M54927</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-31T01:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956886#M54928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue you observe is not really the one which we mean. The one you see is managed by the customer already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all kindly find attached the source of Linux application this would help to reproduce the issue.&lt;/P&gt;&lt;P&gt;In details the flow related to the issue is follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1.  Open() call for virtual COM&lt;/P&gt;&lt;P&gt;  2.  Write() call doesn’t produce any errors&lt;/P&gt;&lt;P&gt;  3.  Read() returns immediately with zero bytes received and errNo=0. Read() call is the synchronous which means it returns only in case the error happens or in case some data is received. As there is no real data, logically such behavior means EOF. I.e. the virtual COM was closed right after Write() execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From MK66 side the data sent on step 1 is received, handled and the response is sent back to PC. The PC didn’t call Close(). But MK66 has received the Set Control Line State request  and has changed the state startTransactions=0 (was equal to 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 08:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956886#M54928</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-31T08:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956887#M54929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the fix to avoid the issue you face. Just replace your “virtual_com.c” with the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956887#M54929</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-31T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956888#M54930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find below some supplementary remarks about the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1.  The issue raises once per 100-1000 open-write-read-close cycles using sample application shared previously.&lt;/P&gt;&lt;P&gt;  2.  In case of issue supplementary calls of Read() and Write() also return error. To recover need to call close() + open().&lt;/P&gt;&lt;P&gt;  3.  In case we introduce 10ms delay between open() and write(), than write() returns error instead of read().&lt;/P&gt;&lt;P&gt;  4.  In case modem lines are disabled on PC the issue disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;Slava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:31:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956888#M54930</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-31T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956889#M54931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use this Virtual_com.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956889#M54931</guid>
      <dc:creator>vyacheslavguzhv</dc:creator>
      <dc:date>2019-10-31T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: MK66 communication issue with virtual COM port via USB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956890#M54932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/vyacheslavguzhva" rel="nofollow noopener noreferrer" target="_blank"&gt;vyacheslavguzhva&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late replay, I receive an answer from the applications team and looks like this error is related to the one in the following &lt;A _jive_internal="true" href="https://community.nxp.com/thread/359149" rel="nofollow noopener noreferrer" target="_blank"&gt;post&lt;/A&gt;&amp;nbsp;and adding the flag helps to not get stuck:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; bool received_data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TRUE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately adding this&amp;nbsp;shows the same symptoms as a Windows WS (intermittently returns error). The applications team still looking into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 23:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK66-communication-issue-with-virtual-COM-port-via-USB/m-p/956890#M54932</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-30T23:30:38Z</dc:date>
    </item>
  </channel>
</rss>

