Hi Michel,
Thanks for you input. It would be very useful if you could upload your project for comparison. Maybe freescale can chime in on steps for porting the current USB example projects to alternative processors. It seems to a be very non-trivial task at the moment. I have gone through the 4.1.1 documentation and gotten started on the process of getting the examples working then porting to alternate kinetis variants. Note that the "USBUG.pdf" and the "USBAPIRM.pdf" do not contain nearly enough information on setting up your own USB projects. Section 5 was somewhat useful, but lacking in many many details.
Some notes and some questions on my progress in case it is useful to anyone:
What has made it even more confusing is that the codewarrior example projects with library version 4.1.1.1 are using dfferent startup code and vector tables than those generated by the codewarrior wizard. I am grateful that they are there and they do build though. Can someone explain why they are using the vectors.c for the interrupt code rather than the kinetis_sysinit.c vector source? This would be helpful in being able to port the USB source to a standard codewarrior created project.
I am currently working with some of the examples and have managed to get a couple working with the freedom KL25Z (labeled cw10\kinetis_l2k in the directory structure)boards. I am again grateful that I can get them to run on the low cost freedom boards, but they were built for the tower board variant. This causes the MSD to hard fault, but it does build, which gives me hope for porting it. I am not sure if the example is using external flash that may be causing it to hard fault on freedom board.
Also, CDC examples runs fine, but the composite example with MSD has the same issue as above. The MSD is supposed to mount and contain the *.inf driver setup file, but where it does the MSD does not mount I cannot access the file and the CDC usb setup is different from that of the standalone CDC example. I tried to change the VID,PID of the composite descriptor to match that of the standalone CDC drive *.ini file, but got the bluescreen of death (woops). I tried to copy the contents of the "inf_file.c" that contains all of the inf data with line feeds, etc, - removed line feeds and tried to use install the dirvers, but failed.
I Need to learn more about how to properly configure the descriptors a composite device. Can someone explain where I can information on how to setup the descriptors for a composite device? I see that there is a "usb_composite.c\h" but they are not documented in the "USBUG.pdf" or the "USBAPIRM.pdf". I have usb_composite.c/h, but it is unclear to me how these link the descriptors and USB functionality together. Can anyone give further information or references to further material in this regard?