<?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>Kinetis MicrocontrollersのトピックK28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858946#M51444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am playing around with the demo project&amp;nbsp; "dev_composite_cdc_vcom_cdc_vcom_bm" with supports two virtual com ports via USB.&amp;nbsp; I am wondering how to change the code to support four vcoms?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking this question in part to better understand the project and it would just be interesting to see this work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that in the usb_device_descriptor.c file that there needs to be more configuration definitions for the "usb_device_class_struct_t g_UsbDeviceCdcVcomConfig[2] " structure, but seems like there might be other things need to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Admittedly, I am new to the USB stack and trying to gain some understanding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 02:51:27 GMT</pubDate>
    <dc:creator>aes_mike</dc:creator>
    <dc:date>2019-01-08T02:51:27Z</dc:date>
    <item>
      <title>K28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858946#M51444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am playing around with the demo project&amp;nbsp; "dev_composite_cdc_vcom_cdc_vcom_bm" with supports two virtual com ports via USB.&amp;nbsp; I am wondering how to change the code to support four vcoms?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking this question in part to better understand the project and it would just be interesting to see this work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to me that in the usb_device_descriptor.c file that there needs to be more configuration definitions for the "usb_device_class_struct_t g_UsbDeviceCdcVcomConfig[2] " structure, but seems like there might be other things need to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Admittedly, I am new to the USB stack and trying to gain some understanding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 02:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858946#M51444</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2019-01-08T02:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: K28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858947#M51445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also need to add that I am using NXP MCUXpresso IDE v10.2.1 along with SDK 2.4.1&amp;nbsp; for the MK27FN2M0xxx15. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 02:56:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858947#M51445</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2019-01-08T02:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: K28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858948#M51446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the HS or FS USB interface?&lt;/P&gt;&lt;P&gt;The FS one has 16 endpoints and the HS one 8 so it is possible to make 7 USB-CDC interface (sharing an endpoint for each bulk CDC IN/OUT) or 5 when IN/OUT are on different endpoints on the FS OTG interface.&lt;/P&gt;&lt;P&gt;On the HS interface 3 or 2, respectively, are possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check whether the USB stack is sharing endpoints or not to get its limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of complications the uTasker USB stack can also be used with MCUXpresso and SDK (links below) where the number of USB VCOMs is configured by a single define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define USB_CDC_VCOM_COUNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;4&lt;/STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the number of CDC virtual COM ports in composite device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define USB_SIMPLEX_ENDPOINTS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // share IN and OUT on a single endpoint (remove for independent IN/OUT endpoints)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and mixed with various other composite classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the Freescale/NXP USB stack requires a certain amount of custom modification and fairly deep understanding to do it because the 2 x CDC case is more an example of what can be done than a generic solution.&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;USB Guide: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/docs/uTasker/USB_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;Composite and multiple VCOM: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis/USB_Device.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/USB_Device.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Complete Solutions and technical support for professional Kinetis developments: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/www.utasker.com/kinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858948#M51446</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-01-08T17:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: K28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858949#M51447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are many files you should modify. They are in the source directory. The first thing you should change is define USB_DEVICE_CONFIG_CDC_ACM as 4. Then all the code relate to it should be checked carefully. Another important thing is USB descriptor in usb_device_descriptor.c. You must modify it very carefully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I can't list all the things you should take care. When you download the KSDK, there is a document package. There is a MCUXpresso SDK_USB_Stack_Composite_Device_User's_Guide.pdf. It can give you many help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858949#M51447</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-01-09T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: K28f example project dev_composite_cdc_vcom_cdc_vcom_bm can we instantiate more than two virtual COM ports?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858950#M51448</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 also have the same question.&amp;nbsp; I tried to follow Jing's recommendation but I cannot make it work.&amp;nbsp; With my modification, the original 2 virtual coms are not even recognized by the window.&amp;nbsp; After, I fashed/run my modified program, I can only see : "USB device composite demo" from the Console, and that is all.&amp;nbsp; My question: anyone successfully add extra Virtual com from the SDK2.5&amp;nbsp; composite_cdc_vcom_com_cdc_vcom_bm example?&amp;nbsp; Can you post your modified code? There are a lot of steps and it is easy to make a mistake.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 01:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K28f-example-project-dev-composite-cdc-vcom-cdc-vcom-bm-can-we/m-p/858950#M51448</guid>
      <dc:creator>EE17</dc:creator>
      <dc:date>2019-03-20T01:40:40Z</dc:date>
    </item>
  </channel>
</rss>

