<?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: merge usb cdc host and device in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/merge-usb-cdc-host-and-device/m-p/750757#M45754</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;First I would you read the the MCUXpresso SDK USB Stack User's Guide.&lt;/P&gt;&lt;P&gt;Section 4.1 Developing a New USB Device Application.&lt;/P&gt;&lt;P&gt;Section 4.2 Developing a New USB Host Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From software perspective, if&amp;nbsp; you use host cdc as a starting point , see below picture, you need to copy device stack to the usb folder, copy the device cdc source files to the sources folder. Next you need to merge main function. Maybe you need at least 2 tasks, one is for cdc host, one is for cdc device. and start the relative task when needed.&amp;nbsp; Maybe need lots of time to fix some compile errors.&lt;/P&gt;&lt;P&gt;&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/33821i5FDA15AC665426C5/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;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 07:29:47 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2017-11-22T07:29:47Z</dc:date>
    <item>
      <title>merge usb cdc host and device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/merge-usb-cdc-host-and-device/m-p/750756#M45753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To whom it may concern,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to develop an application for the FRDMKL82Z board which requires it to act as a cdc host some times and a cdc device at others. &amp;nbsp;I have gotten the demos to execute successfully and have been able to modify them for my purposes. &amp;nbsp;I now need to merge both code bases - I think I understand how to get FreeRTOS to switch one side on at a time but am having lots of linker problems if I just try to copy and paste one into the other. &amp;nbsp;I tried to follow the instructions as per&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/437502"&gt;https://community.nxp.com/thread/437502&lt;/A&gt;&amp;nbsp;but I ended up with lots of broken includes even though I have pointed the linker at the correct directory (I basically copied the entire vcom device directory into a special directory in the host project and pointed the linker at that). &amp;nbsp;Is there something I am missing? &amp;nbsp;I am somewhat out of practice coding - haven't done it for 20 years so there may be something obvious I am missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SDK 2.2 and KDS 3.2. &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>Mon, 06 Nov 2017 03:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/merge-usb-cdc-host-and-device/m-p/750756#M45753</guid>
      <dc:creator>jihsianglum</dc:creator>
      <dc:date>2017-11-06T03:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: merge usb cdc host and device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/merge-usb-cdc-host-and-device/m-p/750757#M45754</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;First I would you read the the MCUXpresso SDK USB Stack User's Guide.&lt;/P&gt;&lt;P&gt;Section 4.1 Developing a New USB Device Application.&lt;/P&gt;&lt;P&gt;Section 4.2 Developing a New USB Host Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From software perspective, if&amp;nbsp; you use host cdc as a starting point , see below picture, you need to copy device stack to the usb folder, copy the device cdc source files to the sources folder. Next you need to merge main function. Maybe you need at least 2 tasks, one is for cdc host, one is for cdc device. and start the relative task when needed.&amp;nbsp; Maybe need lots of time to fix some compile errors.&lt;/P&gt;&lt;P&gt;&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/33821i5FDA15AC665426C5/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;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 07:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/merge-usb-cdc-host-and-device/m-p/750757#M45754</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-11-22T07:29:47Z</dc:date>
    </item>
  </channel>
</rss>

