Usb Device Driver for TWR-K60N512?

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

Usb Device Driver for TWR-K60N512?

1,121 Views
karthikpoojary
Contributor III
    • I am trying to write a driver for USB  - Bare metal using Keil IDE
    • I am getting Reset Interrupt after reset is handled and I am getting a error interrupt - PID check field fails.
    • I want MCU to operate in Device mode for CDC class.
Tags (2)
3 Replies

444 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Karthik,

For a device CDC application, you need not prepare the driver by yourself, windows already contains the USB CDC driver, all you have to do is to prepare the inf file needed during driver installation. we have provided USB stack in the KSDK 2.x but so far TWR-K60N512 is not supported yet, but TWR-K60D100M instead. so if you need a USB CDC demo for TWR-K60N512, you might have to use the legacy USB stack ver 4.1.1 which can be downloaded from USB Stack v4.1.1 NXP bare metal (no OS) USB Stack , and find the demo in the folder of "C:\Freescale\Freescale USB Stack v4.1.1\Source\Device\app\cdc\keil_uv\kinetis_k60", which is based on Keil IDE, and the inf file can also be found in the folder of "C:\Freescale\Freescale USB Stack v4.1.1\Source\Device\app\cdc\inf".

Hope that helps,


Have a great day,
Kan

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

444 Views
karthikpoojary
Contributor III

Anyone please,

Even when i tried to USB stack v3.2.0 I am getting following error.

DescriptionResourcePathLocationType
make: *** [Source/driver/usb_dci_c.obj] Error 1s08usbjm60line 0C/C++ Problem
0 Kudos

444 Views
mjbcswitzerland
Specialist V

Hi

Try loading a binary to your tower kit from here to verify your HW: http://www.utasker.com/kinetis/TWR-K60N512.html

In case you don't make progress, also note that there is USB-CDC support (for up to 6 USB-CDC to UART bridges at the same time on the K60, and including MODBUS over USB and RNDIS) in the project, which builds directly for the K60 with Keil uVision.

Regards

Mark

P.S. I never heard of a V3.2.0 stack - s08usbjm60 sounds as though it may be something for an 8 bit processor family.