What is the default USB settings e.g baud rate, parity, stopbit, databit etc for STM32?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-16 1:03 PM
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
STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
Solved! Go to Solution.
- Labels:
-
STM32F3 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-17 7:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-16 1:51 PM
You are mixing up USB speed with UART speed. If you implement a serial port in USB, you can have whatever defaults you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-16 11:38 PM
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?
STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-17 6:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-17 7:17 AM
No. I'm not using ST-Link Virtual Com Port. I'm using USB directly to PC. Also called Virtual Com Port.
So I assume that I have to use 115200 bps as default then?
Is there any way to find out stopbit and databit too?
STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-17 7:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-18 7:05 AM
In other words, STM32 USB has fixed communication configuration.
STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
