USB as Device Driver

cancel
Showing results for 
Search instead for 
Did you mean: 

USB as Device Driver

1,521 Views
kirantujare
Contributor IV

Hi,

 

I am using a customized board with MK50DX256.
I want to use processor expert in CodeWarrior to use it as a device driver. I want to be able to use the serial function in hyperterminal through USB. Is there a bean in processor expert that would help me achieve that? Also any sample project would help?

Labels (1)
0 Kudos
18 Replies

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

You can use the component of  "USB_LDD".

pastedImage_0.png

After add this component , right click it , then select the  "help on component " , then click "Typical Usage",

there is USB demo :

pastedImage_1.png

Hope it helps

Alice

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,

Thank you for the reply. I have the following error.
Can you help me figure it out?

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

I think you have not enable the "clock pin":

pastedImage_0.png

Hope it helps

Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

159 Views
kirantujare
Contributor IV

Thank you Alice :smileyhappy:

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Kiran,

Welcome !

Alice

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,

I want to use the driver mode of USB for CDC class.
I would like to know if there is any example project for doing this? I would appreciate any help.

Regards,
Kiran

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

Sorry there  is no official demo about USB for CDC of the PE component .

BR

Alice

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,
Hope you're doing well.
I wish you could provide me some help with this USB CDC DEVICE
I would appreciate it.

-Kiran Tujare

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

Don't warrior , that thread question has been take by one

USB expert, hi will help you .ASAP .

BR

Alice

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,
Can you answer this thread please?
https://community.nxp.com/message/826698 

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,

Thank you for the reply.
When can I expect his response?

Regards,
Kiran Tujare

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kran,

He has answer you , please check !

Hope it helps

ALice

0 Kudos

159 Views
kirantujare
Contributor IV

Hey Alice,

I wanted to direct you to this. Please reply.

https://community.nxp.com/message/826102 

-Kiran

0 Kudos

159 Views
kirantujare
Contributor IV

Hi Alice,


I am doing a project for USB CDC using this link https://centaurian.co.uk/2015/12/23/ksdk-usb-cdc-printf/
I got it working for my board. I want to type on hyper terminal and I am not being able to do that. How do I make scanf work for that? Please reply in your spare time.

-Kiran

0 Kudos

159 Views
kirantujare
Contributor IV

Hey Alice,

I was using example project for MK53N512 from Freescale USB Stack v4.1.1 to port a project for MK50DX256CLK10. I wanted some help on porting a project. I tried it and ran into some errors. I wish you could help me resolve them? I have attached the screenshot below.

0 Kudos

159 Views
kirantujare
Contributor IV

Hi ALice,
I installed USB Stack v4.1.1 NXP bare metal (no OS) USB Stack and imported USB_.PEupd components in the processor expert but I cannot view USB_AUDIO_CLASS.PEupd and USB_CDC_CLASS.PEupd because the processor expert filters these components. Is there a way to remove the filter. I have pointed out the place where it is filtered in the attached file

0 Kudos

159 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

1) You can disable the filtering :

pastedImage_0.png

2) If you use the PE component , there is demo code on the "help on component " i said above.

3) I see you use the chip of K53DN512 ,  you can also download the KSDK ,use the KDS IDE,

there are USB demo for TWR-K60D100, it is the same with mk53dn512 Chip .

pastedImage_1.png

You can refer to this thread to download and install KSDK v2.0 on KDSv3.2 :

Using Kinetis Design Studio v3.x with Kinetis SDK v2.0

when download KSDK, select the chip you used .

Hope it helps

Alice

0 Kudos

159 Views
kirantujare
Contributor IV

Thank you so much Alice :smileyhappy:

0 Kudos