<?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 Software Development KitのトピックRe: Clean KSDK 2.x project, how do you add USB?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673106#M7367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;KDS&amp;nbsp;New Project Wizard allow to create standalone projects from SDK 2.x examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;File - New - Kinetis SDK 2.x Project&lt;/LI&gt;&lt;LI&gt;Enter project name and select SDK 2.x root folder&lt;/LI&gt;&lt;LI&gt;Select Boards - {board} - Examples - usb_examples - {example}&lt;/LI&gt;&lt;LI&gt;Hit Finish&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Before starting this wizard, please ensure you have the latest version from KDS Update site.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 06:37:14 GMT</pubDate>
    <dc:creator>marek-trmac</dc:creator>
    <dc:date>2017-06-05T06:37:14Z</dc:date>
    <item>
      <title>Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673104#M7365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add USB to a clean KDS 3.2 KSDK 2.x project.&amp;nbsp; I found this related post :&amp;nbsp;&lt;A href="https://community.nxp.com/thread/437502"&gt;How to add USB Middleware on my KDS+KSDK Project&lt;/A&gt;&amp;nbsp;but the described steps are incomplete and so far I have been unable to even successfully compile the project.&lt;/P&gt;&lt;P&gt;I copied the&amp;nbsp;files from the middleware folders and example project into my project and added them as include paths for the compiler:&lt;/P&gt;&lt;P&gt;C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/device&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/includes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/osa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C:\Freescale\SDK_2.2_MK22FN512xxx12\boards\frdmk22f\usb_examples\usb_device_composite_cdc_msc_lite/bm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I removed the 'kds' folder from the example 'bm' directory after the copy to prevent any confusion with the kds project files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need the project to be stand-alone (cannot link files in the KSDK 2.x directory) since the entire (complete) project must be included in version control.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In summary, what are the steps to add the USB middleware to a clean KSDK 2.x project in KDS 3.2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 19:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673104#M7365</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-06-02T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673105#M7366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here are the steps to copy a usb device example to a new KSDK 2.x project and build it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Delete &lt;EM&gt;main.c&lt;/EM&gt;&amp;nbsp;from &lt;EM&gt;source&lt;/EM&gt; folder of the new project&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;.&amp;nbsp;Copy application files from &lt;EM&gt;bm&lt;/EM&gt; folder (boards\frdmk22f\usb_examples\usb_device_composite_cdc_msc_lite\bm) &amp;nbsp;to &lt;EM&gt;source&lt;/EM&gt; folder. After this the source folder will be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="source.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19965i17E322DA3CA9F560/image-size/large?v=v2&amp;amp;px=999" role="button" title="source.PNG" alt="source.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;. Delete all files in &lt;EM&gt;board&lt;/EM&gt; folder and copy these files them from &lt;EM&gt;bm&lt;/EM&gt; folder into &lt;EM&gt;board&lt;/EM&gt; folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20019i584D1E047635AB1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;. Copy usb driver folders(from middleware\usb_1.6.3) to a new folder &lt;EM&gt;usb&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20020i2D0872682723B9A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;. Add include directories to settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20116i57156074D0605955/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt;&amp;nbsp;Change this in linker file (MK22FN512xxx12_flash.ld):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="linker_usb.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20269iC1F005BC8C3962DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="linker_usb.PNG" alt="linker_usb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;.&amp;nbsp;Add these preprocessor definitions:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20167i0CB03B2EED7E2DF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20220iDA0699515D5B4760/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;. Add this option to linker settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-Xlinker --defsym=__usb_ram_size__=0x800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_19.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20368iD6E3B9EA5A9487E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_19.png" alt="pastedImage_19.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the new project is ready for build and you have the usb example project as a standalone project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 14:58:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673105#M7366</guid>
      <dc:creator>visakhanc</dc:creator>
      <dc:date>2017-06-03T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673106#M7367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;KDS&amp;nbsp;New Project Wizard allow to create standalone projects from SDK 2.x examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;File - New - Kinetis SDK 2.x Project&lt;/LI&gt;&lt;LI&gt;Enter project name and select SDK 2.x root folder&lt;/LI&gt;&lt;LI&gt;Select Boards - {board} - Examples - usb_examples - {example}&lt;/LI&gt;&lt;LI&gt;Hit Finish&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Before starting this wizard, please ensure you have the latest version from KDS Update site.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 06:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673106#M7367</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2017-06-05T06:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673107#M7368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. &amp;nbsp;These steps worked properly and allowed me to bring in the middleware into my existing project. &amp;nbsp;Thank you for taking the time to write up the very clear instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a related question, do you know what the '-Xlinker --defsym=__usb_ram_size=0x800' linker option does? &amp;nbsp;I was unable to find that symbol in the linker script or anywhere in the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 17:39:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673107#M7368</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-06-05T17:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673108#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marek, but this solution does not do what I need. &amp;nbsp;While this solution does allow you to create a new clean project with USB from an example, it does not describe how to bring USB into an existing clean project. &amp;nbsp;Therefore, I am unable to specify which driver set I want to import (none / minimal / complete) and I am not able to specify a c++ project from the beginning of creating the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 17:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673108#M7369</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-06-05T17:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clean KSDK 2.x project, how do you add USB?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673109#M7370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice to know it helped you! The linker option&amp;nbsp;&lt;EM style="background-color: #ffffff; color: #51626f;"&gt;'-Xlinker --defsym=__usb_ram_size=0x800'&lt;/EM&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;was found in the project settings of that usb example. I also didn't find the use of it. I think&amp;nbsp;some other usb examples may be using it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 18:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Clean-KSDK-2-x-project-how-do-you-add-USB/m-p/673109#M7370</guid>
      <dc:creator>visakhanc</dc:creator>
      <dc:date>2017-06-05T18:28:13Z</dc:date>
    </item>
  </channel>
</rss>

