USB Device example for Kinetis

Comments

3 comments

  • Avatar
    Kevin Webster

    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.

    0
    Comment actions Permalink
  • Avatar
    VEIT Electronics - Martin Dušek

    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.

    0
    Comment actions Permalink
  • Avatar
    VEIT Electronics - Martin Dušek

    We finally did it – the whole magic is that „LITTLE_ENDIAN“ symbol wasn’t defined for CrossStudio project. Codewarrior has it.

    0
    Comment actions Permalink

Please sign in to leave a comment.