USB CDC for Custom Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB CDC for Custom Board

3,982 Views
kirantujare
Contributor IV

Hi,

 

I have put together a project in KDS by converting it from CodeWarrior. I want to add the USB CDC feature to my project. I have a sample project using fsl_usb_framework (KSDK 1.3.0)for USB working. I am not being able to add the fsl_usb_framework bean to my project. I get errors when I try to add the fsl_usb_framework bean. I would appreciate if someone could help me with it. I am using MK50DX256CLK10(80 PIN) Processor for it. I have attached my project below. I have a time constraint and need to complete the project soon. Any help will be appreciated. I am using KDS 3.2 and the project was converted from Codewarrior 10.6.4. The project did not have any USB bean in Codewarrior. I am trying to add the bean in KDS after converting the project.

 

Regards,
-Kiran

Original Attachment has been moved to: oo.zip

6 Replies

3,385 Views
isaacavila
NXP Employee
NXP Employee

Hello,

First of all, You cannot add the fsl_usb_framework component to a non-KSDK project, so, if you want to migrate from CW (where KSDK was not supported) into KDS and just add the fsl_usb_framework component it will cause lot of errors (as you already saw).

For K50 processor, you can use K60's project as reference due both are compatible each other. If you want to create a processor expert project and implement CDC functionality you will have to follow what it is shown here: USB Device CDC on KSDK PEx components and KDS 3.0 and KSDK 1.2.0 or KSDK 1.3.0 .  or in this post where CDC + MSD composite device is created in PEx: https://community.nxp.com/message/809260#comment-809260.

I would strongly recommend you to start this a new KDS project and add KSDK and PEx support instead of just taking them from CW.

Hope this helps!

Regards,

Isaac

3,383 Views
kirantujare
Contributor IV

Hi Isaac,
Thank you for the reply. I have already got the usb cdc working on KDS. I will now have to write the rest of the code in KDS adding different beans. Because of the time constraint, I was hoping for a work around. Thank you for the inputs. I appreciate it :smileyhappy:

0 Kudos

3,383 Views
mjbcswitzerland
Specialist V

Hi Kiran

You can get IDE independent CDC (KDS, CW, Rowley, CooCox, Green Hills, etc.) from
http://www.utasker.com/kinetis/TWR-K53N512.html
http://www.utasker.com/kinetis/TWR-K60N512.html
http://www.utasker.com/kinetis/TWR-K60D100M.html
etc.
- "out-of-the-box" CDC functionality (or VCOM to UART or multiple UARTS)
- works on all Kinetis parts with USB without needing any porting
- allows the CDC to be used as RNDIS (in parallel with other VCOMs)
- allows the project and USB operation to be simulated and debugged in VisualStudio

Regards

Mark

0 Kudos

3,383 Views
kirantujare
Contributor IV

Hi Mark,
Thank you for the response.
I am not familiar with µTasker. Is there an example project or some tutorial to get started?

Regards,
Kiran Tujare

0 Kudos

3,383 Views
mjbcswitzerland
Specialist V

Kiran

The uTasker project is a single project that works on almost all NXP boards. You can enable or disable peripherals, services, protocols, features etc. by single defines.
It builds for about 50 standard boards in KDS, CW, Keil, IAR, Rowley, Green Hills, CooCox etc. and customising your own board takes a few minutes (defining some pins used and clocks).
There are tutorials, videos and documents at http://www.utasker.com/docs/documentation.html and with its (approx.) real-time Kinetis project and peripheral simulator it allows huge development efficiency advantages against traditional solutions. Using beans, piecing together and porting examples will take you many times more development time and effort necessary to complete real projects and is unlikely to achieve a similar quality of maintainable code.

Regards

Mark

0 Kudos

3,383 Views
kirantujare
Contributor IV

Thank you for the quick response Mark.
I will look into it. I don't know if the time constraint will allow me to explore it right now. But it will be something to dig into in the future :smileyhappy:

0 Kudos