Lee
The source is on GITHUB - link at this page: http://www.utasker.com/kinetis.html
To build for the TWR-K60F120M (with KDS, CW, MCUXpresso, S32 Design Studio, Rowley Crossworks, IAR, Keil, Atollic, Green Hills, CooCox, GCC or Visual Studio) see the compiler guide links at the top of the same page, whereby I set
config.h:
- TWR_K60F120M
- TWR_SER2
- USB_INTERFACE
- USE_USB_CDC
- USE_USB_MSD
- SDCARD_SUPPORT
to configure for HS USB, and removed the define TWR_SER2 for FS USB.
You can build for about 50 different boards (see list in config.h) or just search for TWR_K60F120M to see sub-configurations, such as clock settings and pin selections, in case you need to adapt to a different HW.
In case of problems cloning from GIT, importing, configuring/building etc. there are a number of videos at https://www.youtube.com/watch?v=kWNlsAoMly4&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q which may help.
As reference for USB device I have attached the USB-CDC configuration descriptors that are used. This is suitable for FS or HS and making composits of up to 6 CDC interfaces (limited by controller's endpoints and less for the HS K60), optionally with USB-RNDIS, and mixed with any combinations of MSD, HID mouse, HID keyboard, HID Raw, and Audio. The defines USE_USB_CDC + USE_USB_MSD automatically select the configuration, whereby USB_CDC_COUNT can be defined to control how many CDC interfaces are used.
A further option, FAT_EMULATION, allows additional USB-MSD views of emulated disks as discussed in the document http://www.utasker.com/docs/uTasker/uTaskerEmulatedFAT.pdf
Regards
Mark