2022-11-22 11:25 PM
I'm now using NUCLEO-L476RG. My PC connects to the board by virtual com port? And i try to set a baud rate greater than 115200 but the data received from usart2 is wrong. However, when i set the baud rate less than 115200, it works well.
So i wanna ask that if 115200 is the upper limitation of virtual com port? If not, how can i set a higher one?
2022-11-23 03:48 AM
USB not active, no clk....this is your clock tree, where you complain about usb vcp speed ??
2022-11-23 04:14 AM
yes, actually i am using usart2 to transmit data to VCP. But you are right, maybe i can try using usb for a higher speed
2022-11-23 05:17 AM
obviously we are in different worlds . VCP IS USB , in serial mode.
where you connect the uart ???
2022-11-23 05:23 AM
Emm, maybe i misunderstand some concepts. Thank you for pointing it out。
2022-11-23 05:34 AM
Virtual COM port (VCP) drivers cause the USB device to appear as an additional COM port available to the PC. Application software can access the USB device in ... (ftdi)
2022-11-23 05:39 AM
But i wonder that what happens when stm32 sends data to usart2, even though i did not activate usb, i still receive data from VCP in PC.
2022-11-23 05:42 AM
If you are using a development board like the NUCLEO, the ST-LINK there converts a USART to VCP, for which there is a connection from that USART to the STM32 of the ST-LINK. USB does not need to be activated for VCP to function (if it exists at all at the target).
Regards
/Peter
2022-11-23 05:46 AM
Ok, i see. Thank you.
2022-11-23 06:01 AM
aa, you using the built-in vcp of the onboard st-link.
then your max. speed is, what this onboard thing can do; should be given somewhere in manual.
+
>How can i set baud rate greater than 115200...
then you need to use the usb/device/vcp on STM32L476 chip...
2022-11-23 06:47 AM
Thanks. I will check that