I'm attempting [almost] the same thing with miserable luck. My final project is using FreeRTOS on a K22F512.
I imported the example file in SDK 2.5 folder using the IDE find examples thing targeting a frdmK22F(frdmk22f_dev_cdc_vcom_freertos)
This thing is set up to use a file called serial_manager.c. The .h file has it set up to use a UART (which my board doesn't have). When I edit that to use CDC, it's attempting to include a file called serial_port_usb.h which isn't included in the example.
The example isn't set up for the current IDE and tools (MCUexpresso 10.3) so I can't just open that up and see what other things it's configured for and documentation is non-existent on any of this stuff that explains the internals of it. Top that off with a plenty convoluted code base and I haven't been able to take apart the stuff that isn't required in this whole project to get it into mine.
Also looking at that example code, there are a number of things going on there that would be taken care of in the normal SDK load like clocks and all that. Those I can trim out I think.
All I want is a USB CDC connection into my FreeRTOS enviroment (non-blocking IO) so I can send data and other things out that port (and get packets of information back in). This shouldn't be this hard to implement.
So, using the configuration stuff on MCUexpresso, is there a section of stuff to check that gives you the CDC interface or does a person need to grab something like the USB device and add CDC specific stuff to it or what?