Skip to main content
Pilot B
Associate III
April 19, 2018
Question

How to set the baudrate for USB Host CDC?

  • April 19, 2018
  • 2 replies
  • 875 views
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!

    This topic has been closed for replies.

    2 replies

    Andrew Neil
    Super User
    April 20, 2018
    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.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Pilot B
    Pilot BAuthor
    Associate III
    April 20, 2018
    Posted on April 20, 2018 at 18:19

    Right. Thanks Andrew.