USB CDC on Kinetis K64

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

USB CDC on Kinetis K64

Jump to solution
2,207 Views
punitkumar
Contributor IV

I'm trying a new baremetal USB CDC project with freescale stack 4.1.1, and after modifying the example project given for K60 MCU, i've got it worked.

But now i want to create a new standalone project by picking up the files from the Stack's Device folder, and it built and run but my PC shows -> 'Device not Recognized'

Do i need to make some modification/customization to the files.

regards

Punit Kumar

Labels (2)
1 Solution
1,200 Views
punitkumar
Contributor IV

Thanks to all for the support specially to isaacavila & BlackNight, i got my USB worked today. The problem is, i need to define LITTLE_ENDIAN in

Can someone compare the performance of usb if the project is RAM built or Flash built, i need to utilize the maximum speed of the USB module.

View solution in original post

0 Kudos
15 Replies
1,200 Views
punitkumar
Contributor IV

Also if someone can provide information for get starting Ethernet on K64.

Thanks & Regards

Punit Kumar

0 Kudos
1,200 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Punit,

please see my answer at the post Re: 100Mbps Ethernet on kinetis K64

Hope this helps.

Iva

0 Kudos
1,201 Views
punitkumar
Contributor IV

Thanks to all for the support specially to isaacavila & BlackNight, i got my USB worked today. The problem is, i need to define LITTLE_ENDIAN in

Can someone compare the performance of usb if the project is RAM built or Flash built, i need to utilize the maximum speed of the USB module.

0 Kudos
1,200 Views
patrickphilp
Contributor II

Make sure the USB descriptor structure contents match the contents of the INF file used to install the driver. If the VID & PID don't match, it won't be able to recognize the device.

1,200 Views
punitkumar
Contributor IV

Thanks for the responses

can any help out from the problems in my existing project,

i've not used PE & just pick and drop files from stack,

now my PC, which detect the USB if i use an existing example, but not with my project,

error shown in device manager - 'Windows has stopped this device because it has reported problems. (Code 43)'.

--

Punit Kumar

0 Kudos
1,200 Views
isaacavila
NXP Employee
NXP Employee

Hello Punit,

Could you please be so kind to attach your project?

Best Regards,

Isaac

1,200 Views
punitkumar
Contributor IV

isaacavila

How to attach the project code here?

0 Kudos
1,200 Views
isaacavila
NXP Employee
NXP Employee

Hi Punit,

Select the "use advanced editor" and then "attach" your project in a zip format.

Advanced Editor.jpg

Attach project.jpg

Best Regards,

Isaac

0 Kudos
1,200 Views
punitkumar
Contributor IV

hi isaacavila

mine is not showing advance editor,

tell me your email ID & i'll email you the zip folder

0 Kudos
1,200 Views
mjbcswitzerland
Specialist V

Hi

The error messages don't help much if there are low level problems with USB.

If you are going to do detailed work with USB it is recommended to invest in a USB analyser - the Beagle from Total Phase for example.

Regards

Mark

0 Kudos
1,200 Views
PitOn
Contributor III
0 Kudos
1,200 Views
BlackNight
NXP Employee
NXP Employee

Hi Punit,

you need to disable the memory protection unit first:

MPU_CESR = 0;

See USB CDC with the FRDM-K64F, finally! | MCU on Eclipse

I hope this helps,

Erich

1,200 Views
punitkumar
Contributor IV

thanks Erich,

have already done this, what to do next

0 Kudos
1,200 Views
BlackNight
NXP Employee
NXP Employee

You might have a look at that code mentioned in that article: it is based on the 4.1.1 stack and works for me, both bare metal and with RTOS.

Erich

0 Kudos
1,200 Views
mjbcswitzerland
Specialist V

Hi

The following links contain USB-CDC for the K64 that allows 6 USB-CDCs at the same time. The FRDM-K64 supports 5 USB-CDC to UART bridges and the TWR-K64F120M supports 6 (simply program a binary and see it in action).
The operation can be simulated in the K64 simulator (including all USB operation).

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K64: http://www.utasker.com/kinetis/FRDM-K64F.html / http://www.utasker.com/kinetis/TWR-K64F120M.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos