using CDC with usb stack v4.0.2 on FRDM board

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

using CDC with usb stack v4.0.2 on FRDM board

Jump to solution
14,066 Views
steve_fae
Senior Contributor I

I imported  USB_CDC_DEVICE_MKL25Z128_PEx into CW 10.3 and when I try to build the project I get a lot of path error issues.  What is the best way to fix this?

3282_3282.png

1 Solution
12,187 Views
steve_fae
Senior Contributor I

Finally got the application to work with some additional help from Freescale TIC.  Last question is where do I hack so that its just not a loop back example, basically PC sends a simple string and Kinetis L responds with a different string [basically some data it gathered]. 

View solution in original post

0 Kudos
Reply
65 Replies
4,389 Views
diego_augustus
Contributor II

Hi everybody, I did this example and It worked very well on Freedom Board (tested in Win7 and WinXP). Then I did the same on a board with Kinetis K60 and I faced a problem. The example in this new board worked fine in WinXP but in Win7 the driver is not recognized. Do you have some tip?

Thanks!

0 Kudos
Reply
4,389 Views
BlackNight
NXP Employee
NXP Employee

Hi Diego,

did it not enumerate properly? Which .inf file did you use? I know that there might be some issues with incompatible .inf files. I have attached mine which works fine with XP, Win7 and Win8.

I hope this helps.

0 Kudos
Reply
4,389 Views
diego_augustus
Contributor II

Thank you for your attention Erich.

Yes, I didn't enumerate properly only in Win7. I tried your .inf file without success.

Now, I tried the same example in a Tower Module with Kinetis K60 (TWR-K60D100M and TWR-SER) and it worked well (at Win7 and WinXP).

Probably the problem is with my board. The difference between my board and the tower is the Kinetis package, but the weird thing is working at WinXP and not at Win7.

I will keeping trying.

0 Kudos
Reply
4,389 Views
diego_augustus
Contributor II

I found the problem with the help of Freescale Support.

I missed a capacitor in the VOUT33 signal.@

"This capacitor is a requirement and its typical value is 2.2uF. When this capacitor is missing or its value is out of spec, sometimes the USB applications do not work and work in a different PCs. Becuase this cap is used to filter the D+ and D- signals."

0 Kudos
Reply
4,389 Views
LuisCasado
NXP Employee
NXP Employee

Steven,

Just tested the same project in 4.0.3 version and works fine.  Please download and try that version.

Regards,

Luis

0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

Hey Luis, so I tried 4.0.3 and still get compile issues after importing project

3284_3284.png

0 Kudos
Reply
4,389 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

I don't remember if I had that issue. Please, backup your proyect and unzip the attached. I assume you have imported the PE Device stack into CW10.3.

Best Regards,

Luis

0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

I imported your project and did a clean and build.  same problem.

3285_3285.png

0 Kudos
Reply
4,389 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

Did you import the PE package from 4.0.3?

Best Regards,

Luis

0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

I just imported the .project into CW.  nothing else.

0 Kudos
Reply
4,389 Views
LuisCasado
NXP Employee
NXP Employee

Steven,

You missed to read the "Freescale Processor Expert USB Components Quick Start Guide" doc.

Processor Expert -> Import Package - > Select C:\Freescale\Freescale USB Stack v4.0.3\ProcessorExpert\Components\USB_DEVICE_STACK.PEupd -> Open

Rebuild the project

Luis

4,389 Views
JimDon
Senior Contributor III

In case anyone else wants to read this:

USBPEXQSG.pdf  =  USB Processor Expert Components Quick Start Guide

It is include in the 4.0.3 package here:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MEDICALUSB

A question. The document says:

"On Component Wizard, chose File-> Import-> Import components form package… as the

following figure."

I can't find any "Component Wizard" in 10.3 ? What do mean by "On  Component Wizard" ?

What "form" am I supposed to use? Do I  fill out a form? I

4,389 Views
LuisCasado
NXP Employee
NXP Employee

Hi Jim,

Component wizard allows you to create custom PE components. Now is integrated in CW10.3

PE.bmp

Best Regards,

Luis

0 Kudos
Reply
4,389 Views
JimDon
Senior Contributor III

Luis,

Except you must have a special license to use that, so I do no think that is the correct answer.

I get "A Valid Component Development Environment License was not found". when I try that.

0 Kudos
Reply
4,389 Views
BlackNight
NXP Employee
NXP Employee

Freescale has released a free Community license for the CDE (Component Development Environment), see this wiki.

0 Kudos
Reply
4,389 Views
JimDon
Senior Contributor III

Thanks for the tip Erich. I could use that!

However the correct answer is:

Use Processor Expert/Import Package browse to the PEupd file and import it.

The document "Freescale Processor Expert USB Components Quick Start Guide" is out of date and misleading.


0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

Also, it seems that this demo has a bug as well.

In PE_LDD.h, in front of the line 967 “typedef struct LDD_USB_Device_TTD_Head_Struct“ add “#pragma pack(1) “ and after the line “} LDD_USB_Device_TTD_Head; “ add “#pragma pack()“. I’ll attach a screenshot too. Make sure that, in project properties, under Processor Expert tab, set “Generate code before build automatically” to No. Make sure that after any regeneration of the project you add the lines stated above.

0 Kudos
Reply
4,389 Views
JimDon
Senior Contributor III

Steven,

When you say demo, do you mean the one in the 4.0.3 package, or the one Luis posted?

Really??? You have to change it after each regen???

That is not good.... that file must be some where.

Erich, could you permanently fix this by changing the file that is copied?

0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

from the 4.0.3 package

Steven Cohen

Advanced Engineering Group

Future Electronics

30851 Agoura Road

Suite 115

Agoura Hill, CA

Tel 800.876.6008

Cell 818.261.1033

Fax 818.735.0785

www.FutureElectronics.com <http://www.futureelectronics.com/>

This communication is subject to Future Electronics' Email Policy

WARNING: Please do not attach, forward or reply with any Export

Controlled Technical Data, Documents/Drawings (EAR and ITAR) to this

email. <http://www1.futureelectronics.com/disclaimer.html>

0 Kudos
Reply
4,389 Views
steve_fae
Senior Contributor I

Wow, have no idea how I posted my contact info.  Anyways, with the changes Freescale recommended my colleague got the FRDM board to enumerate correctly with both the OpenSDA connection and the KL25 connection being CDC.  I still can't get the KL25 CDC to enumerate correctly. 

0 Kudos
Reply