<?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: USB vcom read write problem sdk 2.3 MK21FN1M0xxx12 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720915#M7625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a go with the free OpenSource uTasker K21FN project - it allows you to do multiple CDCs at the same time and uses code from industrial implementations that have been proven during several years of extensive service.&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;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K21:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K21F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K21F120M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USB: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FUSB_User_Guide.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;USB composites: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FUSB_Device.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/USB_Device.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;USB-CDC host&amp;lt;-&amp;gt;device video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXhISV1czIo4%26list%3DPLWKlVb_MqDQFZAulrUywU30v869JBYi9Q%26index%3D16" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional Kinetis support, one-on-one training and complete fast-track project solutions: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 21:34:19 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-12-13T21:34:19Z</dc:date>
    <item>
      <title>USB vcom read write problem sdk 2.3 MK21FN1M0xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720914#M7624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm having trouble making the vcom example work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented the read/write blocking functions, but sending long data&amp;nbsp;packets&amp;nbsp;(chunked at 56-byte block consecutive transfer)&lt;BR /&gt;presents some problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Terminal output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24311i5D8033012CB64873/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* main example using freertos */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Init board hardware. */&lt;BR /&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*init the api usb*/&lt;BR /&gt;APPInit();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t buff[70];&lt;BR /&gt;int k = 32;&lt;BR /&gt;for(int i=0;i&amp;lt;sizeof(buff);i++){&lt;BR /&gt;buff[i] = k;&lt;BR /&gt;k++;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;while(1) {&lt;BR /&gt;usb_write(buff,sizeof(buff),100);&lt;BR /&gt;usb_write("\n\r",2,100);&lt;BR /&gt;vTaskDelay( pdMS_TO_TICKS(&amp;nbsp;1000 ) );&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I tried without and with hardware flow control, nothing changed.&lt;BR /&gt;I'm using the nxp driver located inside the folder&amp;nbsp;usb_device_cdc_vcom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OS windows 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mcu&amp;nbsp;MK21FN1M0xxx12&lt;/P&gt;&lt;P&gt;sdk&amp;nbsp;version 2.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same problem&amp;nbsp;under ubuntu (tail -f xxxx)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 19:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720914#M7624</guid>
      <dc:creator>cristianpietrob</dc:creator>
      <dc:date>2017-12-13T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: USB vcom read write problem sdk 2.3 MK21FN1M0xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720915#M7625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a go with the free OpenSource uTasker K21FN project - it allows you to do multiple CDCs at the same time and uses code from industrial implementations that have been proven during several years of extensive service.&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;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K21:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K21F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K21F120M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USB: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FUSB_User_Guide.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;USB composites: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FUSB_Device.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/USB_Device.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;USB-CDC host&amp;lt;-&amp;gt;device video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXhISV1czIo4%26list%3DPLWKlVb_MqDQFZAulrUywU30v869JBYi9Q%26index%3D16" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=XhISV1czIo4&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&amp;amp;index=16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional Kinetis support, one-on-one training and complete fast-track project solutions: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 21:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720915#M7625</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-12-13T21:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: USB vcom read write problem sdk 2.3 MK21FN1M0xxx12</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720916#M7626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Mark, in the end, it was a Qt bug + a problem with the USB driver.&lt;BR /&gt;&lt;BR /&gt;I'm sharing the code the solve everyone else similar problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 22:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-vcom-read-write-problem-sdk-2-3-MK21FN1M0xxx12/m-p/720916#M7626</guid>
      <dc:creator>cristianpietrob</dc:creator>
      <dc:date>2017-12-15T22:13:15Z</dc:date>
    </item>
  </channel>
</rss>

