cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the baudrate for USB Host CDC?

Pilot B
Associate II
Posted on April 19, 2018 at 23:20

Hello,

I'm working on STM32F407VG board. During device enumeration, both the Host and Device use full steep 12MB/s.

After enumeration, can I set '115200 8N1' for the communication? I tried to call CDC_SetInitialValue() to set line coding, but it looks like it still uses full speed for communication from USB analyzer. The device is a USB-to-UART device.

Thanks!

2 REPLIES 2
Posted on April 20, 2018 at 12:49

The 

'115200 8N1' only applies to a physical UART - it does not affect anything in the USB part.

Posted on April 20, 2018 at 18:19

Right. Thanks Andrew.