<?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: ksdk 2.1 usb example problems</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650299#M7028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marek. &amp;nbsp;I updated the New Project Wizard (NPW) and used that to clone the project. &amp;nbsp;This is highly preferable over using the stand alone tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 21:09:40 GMT</pubDate>
    <dc:creator>chriskeeser</dc:creator>
    <dc:date>2017-01-03T21:09:40Z</dc:date>
    <item>
      <title>ksdk 2.1 usb example problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650295#M7024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using KDS 3.2.0&lt;/P&gt;&lt;P&gt;SDK_2.1_MK22FN512xxx12 (&lt;SPAN style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;SDK version: KSDK 2.1.0, OS: os-windows, Toolchain: KDS, &lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #f9f9f9; font-size: 14px;" /&gt;&lt;SPAN style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;Selected optional items: CMSIS DSP Library, USB stack)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Win 7&lt;/P&gt;&lt;P&gt;KFRDM-K22F board&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently downloaded the KSDK 2.1 for the&amp;nbsp;MK22FN512xxx12 device. &amp;nbsp;I am attempting to load the example USB projects into KDS. &amp;nbsp;Specifically, I am interested in the Bare Metal (Lite and non-Lite) version of the Generic HID USB device examples located in:&amp;nbsp;SDK_2.1_MK22FN512xxx12\boards\frdmk22f\usb_examples\usb_device_hid_generic\bm and ..\usb_device_hid_generic_lite\bm.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After importing the project into a new&amp;nbsp;workspace (File-&amp;gt;Import-&amp;gt;General-&amp;gt;Existing Project into Workspace, root directory C:\Freescale\SDK_2.1_MK22FN512xxx12\boards\frdmk22f\usb_examples\usb_device_hid_generic_lite, "copy projects into workspace" checked), I am:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;a.) unable to locate main.c&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;b.) unable to build the project (I receive multiple errors, listed below:)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) What obvious thing am I doing incorrectly?&lt;/P&gt;&lt;P&gt;2.) Where is main located for the examples. &amp;nbsp;I cannot locate a main.c file&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempted debug build error and warning listing:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_clock.c', needed by 'drivers/fsl_clock.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_common.c', needed by 'drivers/fsl_common.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_flash.c', needed by 'drivers/fsl_flash.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_gpio.c', needed by 'drivers/fsl_gpio.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_lpuart.c', needed by 'drivers/fsl_lpuart.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_sim.c', needed by 'drivers/fsl_sim.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_smc.c', needed by 'drivers/fsl_smc.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/drivers/fsl_uart.c', needed by 'drivers/fsl_uart.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/gcc/startup_MK22F51212.S', needed by 'startup/startup_MK22F51212.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/system_MK22F51212.c', needed by 'startup/system_MK22F51212.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/devices/MK22F51212/utilities/fsl_debug_console.c', needed by 'utilities/fsl_debug_console.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/middleware/usb_1.4.0/device/usb_device_dci.c', needed by 'usb/device/source/usb_device_dci.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/middleware/usb_1.4.0/device/usb_device_khci.c', needed by 'usb/device/source/khci/usb_device_khci.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/middleware/usb_1.4.0/osa/usb_osa_bm.c', needed by 'osa/usb_osa_bm.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/board.c', needed by 'board/board.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/clock_config.c', needed by 'board/clock_config.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/hid_generic.c', needed by 'sources/hid_generic.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/pin_mux.c', needed by 'board/pin_mux.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/usb_device_ch9.c', needed by 'sources/usb_device_ch9.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/usb_device_descriptor.c', needed by 'sources/usb_device_descriptor.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: *** No rule to make target 'C:/Users/keesec1/LocalDocuments/KinetisWorkspaces/KSD_2_1_USB_Example/usb_device_hid.c', needed by 'sources/usb_device_hid.o'. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;BR /&gt;make: Target 'all' not remade because of errors. dev_hid_generic_lite_bm_frdmk22f C/C++ Problem&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and warnings&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Invalid project path: Include path not found (C:\CMSIS\Include). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\devices\MK22F51212). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\devices\MK22F51212\drivers). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\devices\MK22F51212\utilities). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\middleware\usb_1.4.0). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\middleware\usb_1.4.0\device). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\middleware\usb_1.4.0\include). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;BR /&gt;Invalid project path: Include path not found (C:\middleware\usb_1.4.0\osa). dev_hid_generic_lite_bm_frdmk22f pathentry Path Entry Problem&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650295#M7024</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2016-12-29T18:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: ksdk 2.1 usb example problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650296#M7025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so just in case someone else runs into this problem here is what I have discovered:&lt;/P&gt;&lt;P&gt;1.) I cannot tell what is wrong with what I did in my original post. &amp;nbsp;As far as I know, it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*However, I was able to get the project to compile after I did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;a.) download and open the KSDK project generator application &amp;nbsp;(&lt;A class="link-titled" href="http://www.nxp.com/products/wireless-connectivity/2.4-ghz-wireless-solutions/bluetooth-low-energy-ble/software-development-kit-for-kinetis-mcus:KINETIS-SDK?tab=Design_Tools_Tab" title="http://www.nxp.com/products/wireless-connectivity/2.4-ghz-wireless-solutions/bluetooth-low-energy-ble/software-development-kit-for-kinetis-mcus:KINETIS-SDK?tab=Design_Tools_Tab"&gt;Software Development Kit for Kinetis MCUs|NXP&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;b.) click the "Advanced" button on the bottom left&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;c.) select "Clone' under the project type (I dont know what "new" does)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;d.) select the desired&amp;nbsp;source example&amp;nbsp;project from dropdown menu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.) check "Generate standalone project" box (not sure what this does, there isn't good documentation on the tool)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;f.) select a "Project Parent Directory" (again, not entirely clear on what this does / what it is for)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;g.) click "Advanced Generate!"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;h.) open a clean KDS workspace and import the project into the workspace. &amp;nbsp;you should now be able to build the project.&lt;/P&gt;&lt;P&gt;*&amp;nbsp;note: I noticed an excess of empty folders in the cloned project. &amp;nbsp;I deleted them, but I don't know why they were there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) main() is in hid_generic.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;notes to any Freescale / NXP / Qualcomm engineers:&lt;/P&gt;&lt;P&gt;1.) please keep the main() function in main.c so we can find it&lt;/P&gt;&lt;P&gt;2.) the documentation on the KSDK project generator is very sparse. &amp;nbsp;Why do I need it? &amp;nbsp;Why wasn't I able to import the project normally?&lt;/P&gt;&lt;P&gt;3.) Where is the documentation on how the USB stack works? &amp;nbsp;All of the reference guides I have found indicate that if you want to build a USB application, you have to start with an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 23:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650296#M7025</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2016-12-29T23:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: ksdk 2.1 usb example problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650297#M7026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris Keeser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem in your original post is&lt;/P&gt;&lt;P&gt;&lt;EM&gt;After importing the project into a new&amp;nbsp;workspace (File-&amp;gt;Import-&amp;gt;General-&amp;gt;Existing Project into Workspace, root directory C:\Freescale\SDK_2.1_MK22FN512xxx12\boards\frdmk22f\usb_examples\usb_device_hid_generic_lite, &lt;STRONG&gt;"copy projects into workspace" checked&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KSDK 2.1 examples uses linked&amp;nbsp;files that has relative paths. This paths are relative to the location of the project, and when you copy a project into your workspace, this paths will not work if your workspace isn't located in the same path that the original example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4085i94C539C2CFC2DC8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is why we recommend to uncheck this option when working with examples, and when the customer want to develop his own example, use project generation tool to clone a project or add libraries needed in the proprieties. About USB documentation, you can fins some manuals in the path &amp;lt;SDK_2.1_MK22FN_path&amp;gt; \docs\usb.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 18:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650297#M7026</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-12-30T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: ksdk 2.1 usb example problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650298#M7027</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;it is also possble to clone SDK 2.1 examples using KDS "New Project Wizard".&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Update New Project wizard from update site first&lt;/LI&gt;&lt;LI&gt;Go to main menu - File - New Kinetis SDK 2.x Project&lt;/LI&gt;&lt;LI&gt;Select any SDK 2.1 and project name, click Next&lt;/LI&gt;&lt;LI&gt;Select any example (under Boards), click Finish&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All the source files for the example will be copied into workspace.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;P&gt;Note: this feature is supported&amp;nbsp;with&amp;nbsp;SDK 2.1 and NPW 2.0.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 07:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650298#M7027</guid>
      <dc:creator>MarekTrmac</dc:creator>
      <dc:date>2017-01-02T07:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: ksdk 2.1 usb example problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650299#M7028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marek. &amp;nbsp;I updated the New Project Wizard (NPW) and used that to clone the project. &amp;nbsp;This is highly preferable over using the stand alone tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 21:09:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/ksdk-2-1-usb-example-problems/m-p/650299#M7028</guid>
      <dc:creator>chriskeeser</dc:creator>
      <dc:date>2017-01-03T21:09:40Z</dc:date>
    </item>
  </channel>
</rss>

