Page 4 of 4
Re: can USB be used to create a virtual com port?
Posted: Tue Dec 06, 2022 9:32 am
by fpiSTM
fpiSTM wrote: ↑Thu Dec 01, 2022 10:42 am
OK I found why and it is normal (at least with the current implementation).
As Serial is no more mapped to SerialLP1 then the default pins defined in the variant_NUCLEO_L4R5.h (PIN_SERIAL_RX/PIN_SERIAL_TX) are not used as they are defined for the "Serial" instance.
So the correct way is to use setRX/TX.
I will check if I can use those defined pins when Serial is mapped to USB.
I've made a PR to fix this. Now when USB sepersed Serial, pins defined are used.
Re: can USB be used to create a virtual com port?
Posted: Wed Dec 07, 2022 9:39 am
by Lord123
No, the USB functionality on a controller cannot be used to create a virtual com port (VCP). This type of functionality is typically only available on controllers that have an onboard ST-Link interface.
FM Whatsapp
Re: can USB be used to create a virtual com port?
Posted: Wed Dec 07, 2022 10:00 am
by STM32_Newbbe
In that case, I just achieved the impossible!
I must be the most terrific hacker of the whole planet
Re: can USB be used to create a virtual com port?
Posted: Wed Dec 07, 2022 2:35 pm
by GonzoG
Lord123 wrote: ↑Wed Dec 07, 2022 9:39 am
No, the USB functionality on a controller cannot be used to create a virtual com port (VCP). This type of functionality is typically only available on controllers that have an onboard ST-Link interface.
FM Whatsapp
And how do you think VCP works on ST-Link??