Skip to main content
Lead
Sep 16, 2021 8:03 PM UTC
Solved

What is the default USB settings e.g baud rate, parity, stopbit, databit etc for STM32?

What is the default USB settings e.g baud rate, parity, stopbit, databit etc for STM32 when using USB_FS?

In this case I can only choose FULL SPEED 12 mb/s. Is that 115200 bps?

I'm using STM32F373VBTx processor

This topic has been closed for replies.
TDK
TDKBest answer
Sep 17, 2021 2:48 PM UTC
Then the speed you select has no effect. You can use whatever you want, it doesn't matter.
"If you feel a post has answered your question, please click ""Accept as Solution""."

6 replies

TDK
Sep 16, 2021 8:51 PM UTC

You are mixing up USB speed with UART speed. If you implement a serial port in USB, you can have whatever defaults you want.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMårtAuthor
Lead
Sep 17, 2021 6:38 AM UTC

So if I have USB, without UART. Then my baud rate etc are configured by the host e.g PC computer when I connect the STM32?

Yes, my USB at STM32 works fine, but I want to slow down the speed. Can I do that from the computer?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
TDK
Sep 17, 2021 1:05 PM UTC

USB clock rate is fixed. If the PC and STM32 are connected purely through USB, you cannot change the speed.

If you are using a USB to UART adapter (such as ST-Link VCP), you can adjust the speed as needed in your terminal program.

"If you feel a post has answered your question, please click ""Accept as Solution""."