AnsweredAssumed Answered

Clean KSDK 2.x project, how do you add USB?

Question asked by Chris Keeser on Jun 2, 2017
Latest reply on Jun 5, 2017 by Visakhan C

I'm trying to add USB to a clean KDS 3.2 KSDK 2.x project.  I found this related post : How to add USB Middleware on my KDS+KSDK Project but the described steps are incomplete and so far I have been unable to even successfully compile the project.

I copied the files from the middleware folders and example project into my project and added them as include paths for the compiler:

C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/device

C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/includes

C:\Freescale\SDK_2.2_MK22FN512xxx12\middleware\usb_1.6.3/osa

C:\Freescale\SDK_2.2_MK22FN512xxx12\boards\frdmk22f\usb_examples\usb_device_composite_cdc_msc_lite/bm

I removed the 'kds' folder from the example 'bm' directory after the copy to prevent any confusion with the kds project files.

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.

 

In summary, what are the steps to add the USB middleware to a clean KSDK 2.x project in KDS 3.2?

 

Outcomes