<?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: issues with freedom k64 virtual com port example in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471302#M28488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have any explanation for the effects that you are seeing but you may like to try a binary for the FRDM-K64F from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; where there is one for USB-CDC to 5 UARTs where you can bridge to physical UARTs or connect to a command line shell (on the first USB-CDC interface).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;All bridges perform end-to-end flow control so you can verify whether it is a particular problem with the implementation that you are using at the moment or something general, or .NET specific.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 21:30:09 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2016-02-18T21:30:09Z</dc:date>
    <item>
      <title>issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471300#M28486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bit of a hail marry because my issue appears to be on the windows side but it's worth a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running the k64 virtual com port example and trying to talk to it with a c# .net app I wrote. It's pretty simple, I just call port.write() from the c# side and I've done this before so it should work. Trouble is I get timeouts on the windows side every time and when I look in the debugger on the Kinetis side I see the code no longer thinks the device is enumerated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add one more layer of frustration on top of all of this I am running windows in Parallels on a Mac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any experience with any one piece of this and perhaps be willing to offer some insight?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471300#M28486</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-02-18T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471301#M28487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have drilled this down a little more. It seems .NET was trying to use some flow control that doesn't really work on the cdc example. Once I disabled that I was able to receive data. I have a new problem thought that exists both in my terminal emulators as well as .NET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I receive data, I can't receive any more data unless I send data first. It seems like the receive puts it in a state where it can't receive any more data and the send is getting it back out of that state. I am only receiving 6 characters so nothing is overflowing as far as I know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 20:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471301#M28487</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-02-18T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471302#M28488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have any explanation for the effects that you are seeing but you may like to try a binary for the FRDM-K64F from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; where there is one for USB-CDC to 5 UARTs where you can bridge to physical UARTs or connect to a command line shell (on the first USB-CDC interface).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;All bridges perform end-to-end flow control so you can verify whether it is a particular problem with the implementation that you are using at the moment or something general, or .NET specific.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 21:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471302#M28488</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-02-18T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471303#M28489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see this is true even for the original example. Once you receive a USB frame you can't receive another one until you send one. I'm not seeing and USB events after the first frame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 22:22:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471303#M28489</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-02-18T22:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471304#M28490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471304#M28490</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-02-22T19:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471305#M28491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks to be true Ryan.&amp;nbsp; I ran into the same thing with the FRDM-K22F board.&amp;nbsp; I simply don't want it to echo everything back!&amp;nbsp; Commenting out the line doesn't do any good, because then everything break.&amp;nbsp; So it seems that the SDK call to UB_Class_CDC_Send_Data must be crucial to proper operation of the Virtual COM Port.&amp;nbsp; What I did to get around it was simply send nothing back, but still made the call, and that seems to work.&amp;nbsp; In the &lt;STRONG&gt;Virtual_Com_App(void)&lt;/STRONG&gt; function this is the original line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error = USB_Class_CDC_Send_Data(g_app_handle, DIC_BULK_IN_ENDPOINT, g_curr_send_buf, size);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error = USB_Class_CDC_Send_Data(g_app_handle, DIC_BULK_IN_ENDPOINT, &lt;EM&gt;NULL&lt;/EM&gt;, &lt;EM&gt;0&lt;/EM&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply just changing the size to send to 0 works as well.&amp;nbsp; After doing this, every character is still process coming into the virtual COM port.&amp;nbsp; Hopefully this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP/Freescale, can you give us some clarity on what is happening when we comment out the above line completely, it causes the virtual COM port to malfunction and no events are fired?&amp;nbsp; At the very least, can you confirm Ryan's statement, that every USB TX needs an RX?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:31:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471305#M28491</guid>
      <dc:creator>kevinlfw</dc:creator>
      <dc:date>2016-06-28T15:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: issues with freedom k64 virtual com port example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471306#M28492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this problem&amp;nbsp;too ( in the example of SDK_2.2_FRDM-KL82Z but I'm pretty sure it's kinda the same ), where you couldn't receive more if you didn't send it back.&lt;/P&gt;&lt;P&gt;What you have to do to solve this is: once you have received something, you have to call this function again "USB_DeviceCdcAcmRecv(handle, USB_CDC_VCOM_BULK_OUT_ENDPOINT, s_currRecvBuf, g_UsbDeviceCdcVcomDicEndpoints[0].maxPacketSize);"&amp;nbsp;so you can receive again.&amp;nbsp;In the example, the code was calling this after sending something, so that's why the 'error' of not couldn't receive more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see this question is almost two years old but maybe it helps someone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/issues-with-freedom-k64-virtual-com-port-example/m-p/471306#M28492</guid>
      <dc:creator>martir</dc:creator>
      <dc:date>2017-12-05T08:58:45Z</dc:date>
    </item>
  </channel>
</rss>

