USB Device example for Kinetis
Hello,
is there any Freescale Kinetis USB Full Speed Device sample project for CrossStudio?
Or can you give some instructions what do I need to port existing CodeWarrior projects from Freescale USB Stack v4.0.2 to CrossStudio. I tried to port HID Device project to CrossStudio but everytime I get "Device not recognized" in Windows. The same project loaded to MCU from CodeWarrior works well.
Thank you
-
I've had exactly the same issue since last year.
I can't for the life of me get the USB stack to work in CrossWorks - except for one, very odd occasion where it just worked.
The exact same code which I use and works in IAR (apart from a couple of compiler directives) fails to work in CrossWorks and presents the same "USB device not recognized" error which you are seeing.
The company for which I work want to move from IAR to CrossWorks as the environment is just so much better and price-wise, is far superior to the rubbish that IAR provide however this USB issue has been a deal-breaker.
-
I submitted this request to Rowley's support:
We succesfully ran HID Device example project for Kinetis K70 from Freescale USB Stack v4.0.2 (Freescale USB Stack v4.0.2\Source\Device\app\hid\cw10\kinetis_k70) in CodeWarrior 10.3.
Now, we need to port it to CrossStudio for ARM v2.3. We constructed the project using exactly same files as the project in CodeWarrior has. The only difference between CS and CW projects is startup code and derivative.h file where we needed to add some missing symbols in order to compile the CrossStudio project. So both projects are basically identical. However, we always get "Device not recognized" in Windows when we plug in our hardware.
Please see the attachment. There is CrossStudio project and Device folder in root. Device folder was hardcopied from Freescale USB Stack v4.0.2\Source\Device. Codewarrior project is in Device\app\hid\cw10\kinetis_k70.
Is there anything you can advise us when porting projects from CodeWarrior to CrossStudio? Or can you provide any functional sample USB project for CrossStudio? Preferable any project employing Freescale USB Stack.
Our hardware is Freescale TWR-K70 and TWR-SER.
Please sign in to leave a comment.
Comments
3 comments