Hi,
Here are the steps to copy a usb device example to a new KSDK 2.x project and build it:
1. Delete main.c from source folder of the new project
2. Copy application files from bm folder (boards\frdmk22f\usb_examples\usb_device_composite_cdc_msc_lite\bm) to source folder. After this the source folder will be like:

3. Delete all files in board folder and copy these files them from bm folder into board folder

4. Copy usb driver folders(from middleware\usb_1.6.3) to a new folder usb

5. Add include directories to settings

6. Change this in linker file (MK22FN512xxx12_flash.ld):

7. Add these preprocessor definitions:


8. Add this option to linker settings:
-Xlinker --defsym=__usb_ram_size__=0x800

Now the new project is ready for build and you have the usb example project as a standalone project.
Regards