New project with USB CDC

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

New project with USB CDC

3,389 Views
nicolag
Contributor II

Hello, I already developed in the past application for Kinetis MCU using CodeWarrior first and KDS till today. Now I need to develop a new board and I think to skip to MCUXpresso IDE (with config tools and SDK builder). My new board need to expose a Virtual Com Port through the USB (I believe I'll use MK60DX256VLL10) but form 2 days I'm trying to understand what I need to develop an USB interface for this MCU and which are the right instruments I've got to use (SDK? Middleware libs?, ...?). It is very difficult to me to understand which is the right way... Is there someone who can explain which is the right one? (I mean: MCUXpresso or KDS? Which SDK? Which libraries?) I found out an example project for FRDM-K64F (I've got one) that works well but I can't do the same thing with a new project :-(

Any help/suggestion will be very welcome, even documentation links, example links,... everything. A step by step list of operation to do to have the project skeleton ready to develop will be the best ;-)

I thank you in advance for your help.

Regards,

Nicola 

6 Replies

2,484 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Nicola 

I recommend you use the SDK on MCUXpresso IDE developing your USB CDC project.

For there is USB libs and the USB demos. you can easy to use , have a look at attachment "usb".

Please refer to the below steps:

- Download and install MCUXpresso IDE from NXP website.

- Download the SDK package from NXP, refer to https://community.nxp.com/docs/DOC-333304  choose the right chip and IDE .

-    Then refer to "Getting Started with MCUXpresso SDK.pdf" use the SDK package .(This DOC will included under your SDK package : SDK_2.2_MK60DX256xxx10\docs\ )

Hope it helps

Alice

2,482 Views
nicolag
Contributor II

Hello Alice, during the week end I understood what you said. I adapted the 'usb_device_cdc_vcom' example to my project and it works now. I've got 2 more questions:

1. It works on Win10 but in Win7 I missed the virtual com port driver; Where can I find it?

2. Which is the difference(s) between the 'usb_device_cdc_vcom' and 'usb_device_cdc_vcom_lite' projects?

I thank you in advance for all.

Nicola

0 Kudos
Reply

2,482 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Nicola,

1. You can find the driver under SDK package :

SDK_2.2_MK60DX256xxx10\boards\twrk60d100m\usb_examples\usb_device_cdc_vcom\inf

About the detail about "Installing the CDC driver for virtual_com" , please check "readme.pdf" page 4 :

pastedImage_1.png

2. I think the demo of 'usb_device_cdc_vcom_lite'  is  more simple than another one, while I think you can

check the detail code .

Hope it helps


Have a great day,
TIC

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

2,482 Views
nicolag
Contributor II

Hi Alice, I'm very near to my goal, but still not on it. I resume the

situation:

1. I download the usb_device_cdc_vcom example to the FRDM-K64F

2. I try to connect it to my Win10 laptop and it works (virtual com

created and communiocation runs well)

3. I try to connect it to another win7 laptop and, after driver

installation you suggested, it works (virtual com created and

communiocation runs well)

4. I adapted the code of the usb_device_cdc_vcom example of FRDM-K64F to

my own board with MK60DX256VLL10 MCU

5. I connect my board to a laptop with Win10 and it works (Virtual com

created and communication runs well)

6. I connect it to a Win7 laptop and it said: "USB device not

recognized"! (even if I redirect it to the same driver I used before)

If I solve this I'm ready to develop all I need on my board... Any

Idea/suggestion? Why it runs on Win10 and not on Win7 (while FRDM-k64F

runs on both)?

I thank you very much for your help.

Nicola

--

Sinai Srl

Via Garofoli, 53 - 37057

San Giovanni Lupatoto - VR - Italy

tel: +39 0458753516

--

MESSAGGIO CONFIDENZIALE

Questo messaggio di posta elettronica contiene informazioni di carattere

confidenziale rivolte esclusivamente al destinatario sopra indicato. E'

vietato l'uso, la diffusione, distribuzione o riproduzione da parte di

ogni altra persona. Nel caso aveste ricevuto questo messaggio di posta

elettronica per errore, siete pregati di segnalarlo immediatamente al

mittente e distruggere quanto ricevuto (compresi i file allegati) senza

farne copia. Qualsivoglia utilizzo non autorizzato del contenuto di

questo messaggio costituisce violazione dell'obbligo di non prendere

cognizione della corrispondenza tra altri soggetti, salvo più grave

illecito, ed espone il responsabile alle relative conseguenze, secondo

quanto stabilito dai Codici Civile e Penale e dal D. Lgs. 196/2003.

CONFIDENTIALITY AND DISCLAIMER NOTICE

This e-mail and any associated files are confidential, intended only for

the addressee named above. If you are not the intended recipient or the

person responsible for delivering to the intended recipient, be advised

that you have received this email in error and that any use of the

information contained within this email or attachments is strictly

prohibited. The contents should not be disclosed to any other person nor

copies taken. As internet communications are not secure we do not accept

legal responsibility for the contents of this message nor responsibility

for any change made to this message after it was sent by the original

sender.If you have received this e-mail in error, please notify the

sender and destroy the original transmission and its attachment without

reading or saving it in any manner.

Il 16/04/2018 09:04, Alice_Yang ha scritto:

>

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

>

Re: New project with USB CDC

reply from Alice_Yang

<https://community.nxp.com/people/Alice_Yang?et=watches.email.thread>

in /Kinetis Design Studio/ - View the full discussion

<https://community.nxp.com/message/1005585?commentID=1005585&et=watches.email.thread#comment-1005585>

>

0 Kudos
Reply

2,482 Views
nicolag
Contributor II

Hi Alice, I tried on a laptop where I didn't install the example so I

copy the whole folder on it and I select the .inf file like you

suggested but when I choose it an error window appears and it tell me

that the driver is not compatible with the device. The laptop is 32bit,

is the driver for 32 bit on 64?

Any idea?

I really thank you for your help.

Nicola

--

Sinai Srl

Via Garofoli, 53 - 37057

San Giovanni Lupatoto - VR - Italy

tel: +39 0458753516

--

MESSAGGIO CONFIDENZIALE

Questo messaggio di posta elettronica contiene informazioni di carattere

confidenziale rivolte esclusivamente al destinatario sopra indicato. E'

vietato l'uso, la diffusione, distribuzione o riproduzione da parte di

ogni altra persona. Nel caso aveste ricevuto questo messaggio di posta

elettronica per errore, siete pregati di segnalarlo immediatamente al

mittente e distruggere quanto ricevuto (compresi i file allegati) senza

farne copia. Qualsivoglia utilizzo non autorizzato del contenuto di

questo messaggio costituisce violazione dell'obbligo di non prendere

cognizione della corrispondenza tra altri soggetti, salvo più grave

illecito, ed espone il responsabile alle relative conseguenze, secondo

quanto stabilito dai Codici Civile e Penale e dal D. Lgs. 196/2003.

CONFIDENTIALITY AND DISCLAIMER NOTICE

This e-mail and any associated files are confidential, intended only for

the addressee named above. If you are not the intended recipient or the

person responsible for delivering to the intended recipient, be advised

that you have received this email in error and that any use of the

information contained within this email or attachments is strictly

prohibited. The contents should not be disclosed to any other person nor

copies taken. As internet communications are not secure we do not accept

legal responsibility for the contents of this message nor responsibility

for any change made to this message after it was sent by the original

sender.If you have received this e-mail in error, please notify the

sender and destroy the original transmission and its attachment without

reading or saving it in any manner.

Il 16/04/2018 09:04, Alice_Yang ha scritto:

>

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

>

Re: New project with USB CDC

reply from Alice_Yang

<https://community.nxp.com/people/Alice_Yang?et=watches.email.thread>

in /Kinetis Design Studio/ - View the full discussion

<https://community.nxp.com/message/1005585?commentID=1005585&et=watches.email.thread#comment-1005585>

>

0 Kudos
Reply

2,482 Views
nicolag
Contributor II

Hi Alice, I thank you for your suggestions but I already did what you said, everything. What do you mean with "For there is USB libs and the USB demos. you can easy to use , have a look at attachment "usb"?

Maybe this can help me ;-)

I thank you for your help,

Nicola

0 Kudos
Reply