usb composite demo on kinetis k60

cancel
Showing results for 
Search instead for 
Did you mean: 

usb composite demo on kinetis k60

Jump to solution
586 Views
prashantdev
Contributor III

hi,

I am trying to use usb_cdc_msd composite demo from freescale usb stack 4.1. on k60n512vmd100 tower kit. My PC detects both storage and virtual com port. I'm able to access storage but when I try to open COM port it says "Port is being used by another application". I've windows 8.1 on my PC. I thought it was driver issue but when I ran  cdc_demo from example projects then virtual com port is working properly. Can someone help ??

Labels (2)
0 Kudos
1 Solution
245 Views
mjbcswitzerland
Specialist V

Do you get a "ding" when you connect to the computer? If not the USB can't be connected.

If you get a "ding" you should see it in the device manager (even if there is a driver problem).

There are a few other binaries at http://www.utasker.com/kinetis/TWR-K60N512.html which also allow checking basic USB.

Regards

Mark

P.S. Make sure that the red LED flashes at 2.5Hz. There should be a 50MHz clock from the SER board that the K60 is using to generate its internal clocks form (including the 48Mz required for USB device). Ensure that this selection is correct.

View solution in original post

0 Kudos
9 Replies
245 Views
mjbcswitzerland
Specialist V

Hi

Try the binary from http://www.utasker.com/kinetis/TWR-K60D100M.html#USB-MSD-CDC to see verify the operation and drivers.
If you continue having difficulties with the Freecale stack try the uTasker one, which allows a USB application to run on any Kinetis part with USB without needing to port between types.
It is free (see open source version) and includes K60 / USB simulation to make developing and study simpler and more efficient.

Regards

Mark


Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis K60:
- http://www.utasker.com/kinetis/TWR-K60N512.html
- http://www.utasker.com/kinetis/TWR-K60D100M.html
- http://www.utasker.com/kinetis/TWR-K60F120M.html
- http://www.utasker.com/kinetis/ELZET80_NET-KBED.html
- http://www.utasker.com/kinetis/ELZET80_NET-K60.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html

Open Source version at https://github.com/uTasker/uTasker-Kinetis

USB: http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF
USB composites: http://www.utasker.com/kinetis/USB_Device.html
USB-CDC host<->device video: https://www.youtube.com/watch?v=XhISV1czIo4&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&index=16

0 Kudos
245 Views
prashantdev
Contributor III

Thanx for the help but after flashing above binary file I didn't see any new device in device manager.

0 Kudos
245 Views
mjbcswitzerland
Specialist V

Hi

Is the green LED flashing at 2.5Hz, indicating the binary was correctly programmed and is running?
I tested on a Tower kit yesterday and its USB composite worked as expected (USB host connected to USB connector on SER board).

Regards

Mark

0 Kudos
245 Views
prashantdev
Contributor III

Hi Mark,

Green LED is not flashing. The bin file I flashed was meant for TWR-k60D100M but I am using TWR-k60n512. Will that file work on this also. I checked uTasker page in TWR-K60N512 demo there is no project for cdc - msd demo. 

0 Kudos
245 Views
mjbcswitzerland
Specialist V

Hi

Please find attached a binary for the TWR-K60N512 (USB CDC MSD composite).

I built and simulated it but didn't verify on the HW (which I don't have present at the moment). The red LED blinks on this one.
Assuming it works as expected I will then put it on the TWR-K60N512 page (noting that the TWR-K60N512 is a very old board with K60N512Z part that has been superseded by the K60N512 revision 2 device)

Good luck

Regards

Mark

0 Kudos
245 Views
prashantdev
Contributor III

Thanx Mark for the help. The red LED was blinking but other than that there is no change.

0 Kudos
246 Views
mjbcswitzerland
Specialist V

Do you get a "ding" when you connect to the computer? If not the USB can't be connected.

If you get a "ding" you should see it in the device manager (even if there is a driver problem).

There are a few other binaries at http://www.utasker.com/kinetis/TWR-K60N512.html which also allow checking basic USB.

Regards

Mark

P.S. Make sure that the red LED flashes at 2.5Hz. There should be a 50MHz clock from the SER board that the K60 is using to generate its internal clocks form (including the 48Mz required for USB device). Ensure that this selection is correct.

View solution in original post

0 Kudos
245 Views
prashantdev
Contributor III

Hi Mark,

Sorry for the delay in response. Your .bin file is working fine. Can u send me the whole project for codewarrior ??

0 Kudos
245 Views
mjbcswitzerland
Specialist V

Hi

The supported professional version is available on request at http://www.utasker.com/Licensing/request.html

If you only need the unsupported open source version I have added instructions and links below. The project includes projects for CodeWarrior, KDS, MCUXpresso, IAR, Keil, GCC, Rowley, CooCox, Green Hills, Visual Studio and so can be used cross-platform without restrictions.

Regards

Mark

Download the uTasker V1.4.11 Kinetis open-source project from GITHUB:
Web: https://github.com/uTasker/uTasker-Kinetis
HTTPS: https://github.com/uTasker/uTasker-Kinetis.git
SSH: git@github.com:uTasker/uTasker-Kinetis.git

*There are various uTasker videos available – go to YouTube and search for “uTasker” to see them, including Kinetis USB-MSD boot loader and SLCD simulator
*Follow uTasker at www.twitter.com/uTasker to receive immediate information about updates
*See further professional services and offers at http://www.utasker.com/services.html

Quick start guide:

1) Download the uTasker package from its repository (GIT) TortoiseGIT is recommended and the following video shows how to get started https://www.youtube.com/watch?v=K8ScSgpgQ6M
2) Start by reading the Kinetis documentation on the Kinetis (http://www.utasker.com/kinetis.html) landing pages, and maybe by loading some reference code to your HW
3) Follow the Ethernet/Simulator tutorial to start working with the uTasker simulator (using VisualStudio C++ - the free VS2015/VS2017 Community edition is fantastic) – this will give you a fast introduction to how to benefit quickly from the project’s capabilities and how to increase development efficiency with this tool
4) See the Compiler/IDE information at www.utasker.com/kinetis/compilers.html for building the project with the environment of your choice
Check out also the video quick start guide for Kinetis KE/KL/K and CodeWarrior: http://youtu.be/uBbiw36Caq4
5) A useful guide to adding your own tasks to the project can be found here: http://www.utasker.com/docs/uTasker/uTaskerV1.3_user_guide.PDF
6) There are various further uTasker documents on the documentation page: http://www.utasker.com/docs/documentation.html handling a variety of themes and peripherals. These will help you working with these extensions as well as using the uTasker boot loader(s)
7) If there are any problems or you have any questions don't hesitate to post questions in the manufacturer's forums.
You will find topics for your processor as well as general discussions - if you don't find what you are looking for, just start a new thread
8) Once your product is ready add a link to it on the uTasker project page: http://www.utasker.com/Projects/Projects.html
9) Have fun with the uTasker project!!

0 Kudos