USB on COM mode with MK60F12

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

USB on COM mode with MK60F12

881 Views
javierrobledo
Contributor I

Hello all!

I have an active and operational project working with MK60F12, bur now I want to implement an USB port to perform serial communications in a similiar way to UART (with USB COM I would not have to have all wiring).

I have the USB port soldered to my development board, but I can't find information on how to implement the necessary code, enable necessary microncontroller pins, etc.

The only information that I have found is:

https://www.keil.com/pack/doc/mw/USB/html/dev_cdc_tutorial.html

I have on my possesion the following files:

- VirtualCOM.c

- USBD_User_CDC_ACM_UART_0.c and .h

- USBD_Config_CDC_0.h

But I don't know if it will work for the MK60F12 or is it exportable to my project.

 

Thank you very much in advance!

0 Kudos
6 Replies

876 Views
myke_predko
Senior Contributor III

@javierrobledo 

Are you working wtih Keil or the NXP SDKs or ???  That isn't clear in your post.  

If it's the SDK, then look at the cdc com demo projects available for your device - it's fairly simple to adapt them to your project but you will have to make sure your clocking is correct.  

myke

0 Kudos

866 Views
javierrobledo
Contributor I

@myke_predko 

I am using KIEL (uVision 5).

I have done the modifications on my board to include de microUSB connector, but my question is how can I implement the communication on my project that let me use USB as a COM.

 

Thanks you very much.

0 Kudos

857 Views
myke_predko
Senior Contributor III

Hi @javierrobledo 

Have you installed the Keil MDK (Keil Microcontroller Development Kit Version 5 - this is for the FRDM-KL25Z but the process should be the same for the K60)?   

I believe that has example USB projects you can work with.  I don't know how much MDK support you can get here (I don't have any MDK experience, my expertise is in the NXP SDK and KSDK and I suspect most people here are similar) - I suggest that you go to Keil Product Support  with your question.  

Good luck!

myke 

0 Kudos

830 Views
javierrobledo
Contributor I

I have installed the MDK of my microcontroller family, and I have updated all the libraries that I need. I will try to search more information about this on the official site of KEIL as your recommend me.

 

Thank you very much!

0 Kudos

848 Views
mjbcswitzerland
Specialist V

Hi

There is also Keil K60F USB-VCOM included at https://github.com/uTasker/uTasker-Kinetis

Code is compatible with Keil uVision, IAR, KDS and MCUXpresso and so globally supported.

Regards

Mark

 

0 Kudos

829 Views
javierrobledo
Contributor I

Oh, that is look pretty good. I am going to take a look on it. I will post here again when I have a solution.

Thank you for the link

0 Kudos