Let LPC55s16 lpcxpresso55s16_dev_composite_cdc_vcom_cdc_vcom_freertos be detected only one comport

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

Let LPC55s16 lpcxpresso55s16_dev_composite_cdc_vcom_cdc_vcom_freertos be detected only one comport

575 Views
javenhuang1998
Contributor II

This example project can let pc detected 2 comport and echo,but i only want to use one comport.
I try to modify 
composite.c

javenhuang1998_0-1696570684901.png

usb_device_config.h

javenhuang1998_1-1696570734695.png

usb_device_descriptor.c

javenhuang1998_2-1696570790363.png


but two comport all disappear.
Any wrong?What should I do?

0 Kudos
Reply
6 Replies

539 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @javenhuang1998,

Could you please test the usb_device_cdc_vcom example? Here you only got one VCOM port enumerated instead of two as the usb_device_composite_cdc_vcom_cdc_vcom does it.

Best regards, Raul.

0 Kudos
Reply

526 Views
javenhuang1998
Contributor II

Hello Raul,

Thank you for your message. I tested the example you advised, but it did not display any comport on my computer. I'm not sure about the reason, but it appears that opening two comports is necessary for it to work correctly.

Best regards,

Javen

0 Kudos
Reply

516 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @javenhuang1998,

On our side we obtain the following:

RaulRomero_2-1697134945743.png

[Running the usb_device_cdc_vcom example]

Is this what you are looking for? If so, could you please test the example following the next steps?

  • Open MCUXpresso IDE v11.8.0 and the usb_device_cdc_vcom example,
  • Connect your LPC55S16EVK board to the computer through J1 (JLINK2) port,
  • Debug the program,
  • After it hits the breakpoint, click Run,
  • Connect the J3 (FS_USB) port to the computer (which will be numerated as COM Port) and,
  • Launch the terminal. You might be able to send information which will echo and displayed in the terminal.

Best regards, Raul.

0 Kudos
Reply

499 Views
javenhuang1998
Contributor II

It's running fine now! I mistakenly opened the wrong project as 'lpcxpresso55s16_dev_composite_cdc_msc_freertos,' which caused it to not run.
I still don't understand the reason. Could it be a driver issue?

486 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @javenhuang1998,

In the readme of the lpcxpresso55s16_dev_composite_cdc_msc_freertos it is explained that you might need to Update the Driver Software for cases where the device is enumerated as USB COMPOSITE DEMO. As the readme mentions, if you had updated the driver, the device would have appeared as a Virtual COM Port.

Best regards, Raul.

0 Kudos
Reply

503 Views
javenhuang1998
Contributor II

Hello @RaRo ,

I follow the step and get this result.

javenhuang1998_1-1697161126759.png

 

Best regards, 

Javen.

 

 

0 Kudos
Reply