<?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 Freescale USB CDC problem receiving the second time in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-CDC-problem-receiving-the-second-time/m-p/460169#M27537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm using Kinetis K64 MCU with freescale USB stack 4.1.1 for USB CDC device (baremetal).&lt;/P&gt;&lt;P&gt;The code is working but only for first receive (connected the virtual serial port to PC terminal), but when i tried to send more bytes ( or even 1 byte), i got nothing to the MCU side.&lt;/P&gt;&lt;P&gt;The way out i've found is i need to send some dummy thing out form MCU USB whenever i received something and after that i can receive the next time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone identify what the problem is and how to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Punit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 08:38:57 GMT</pubDate>
    <dc:creator>punitkumar</dc:creator>
    <dc:date>2015-12-03T08:38:57Z</dc:date>
    <item>
      <title>Freescale USB CDC problem receiving the second time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-CDC-problem-receiving-the-second-time/m-p/460169#M27537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm using Kinetis K64 MCU with freescale USB stack 4.1.1 for USB CDC device (baremetal).&lt;/P&gt;&lt;P&gt;The code is working but only for first receive (connected the virtual serial port to PC terminal), but when i tried to send more bytes ( or even 1 byte), i got nothing to the MCU side.&lt;/P&gt;&lt;P&gt;The way out i've found is i need to send some dummy thing out form MCU USB whenever i received something and after that i can receive the next time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone identify what the problem is and how to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Punit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 08:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-CDC-problem-receiving-the-second-time/m-p/460169#M27537</guid>
      <dc:creator>punitkumar</dc:creator>
      <dc:date>2015-12-03T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Freescale USB CDC problem receiving the second time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-CDC-problem-receiving-the-second-time/m-p/460170#M27538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello PK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you made some modifications on example project? Example is using an specific logic that is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After enumeration, device requests to receive data.&lt;/LI&gt;&lt;LI&gt;Once data is received, this data is copied in another auxiliar buffer and then it is sent back to host.&lt;/LI&gt;&lt;LI&gt;Once data is sent, device requests for more data and cycle is repeated.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you alter the order in this cycle,transactions won't be finished and queue will be filled with transactions that are not completed and system can crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consult this thread that talks about it: &lt;A href="https://community.nxp.com/thread/359149"&gt;KSDK VCOM example does not work without loopback&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other doubt please let me know it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 00:44:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freescale-USB-CDC-problem-receiving-the-second-time/m-p/460170#M27538</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-12-08T00:44:07Z</dc:date>
    </item>
  </channel>
</rss>

