Skip to main content
danielspronk9
Associate II
April 26, 2017
Question

HAL USB CDC:How i can change baudrate and parity

  • April 26, 2017
  • 1 reply
  • 1095 views
Posted on April 26, 2017 at 08:40

Hello, i am working with the HAL USB CDC (CUBEMX) and want configure the baudrate and parity but i cant find a way to configure it.

#stm32f407 #cubemx #usb-cdc
This topic has been closed for replies.

1 reply

jmasriera
Associate II
April 26, 2017
Posted on April 26, 2017 at 16:37

Why do you want to change the baud rate? The MCU will receive the frames with any configuration.

If you want to control the configuration, you will receive it in the 'CDC_Control_FS' function, in 'usb_cdc_if.c' file. Cube generates a void function but it has documentation.

danielspronk9
Associate II
April 27, 2017
Posted on April 27, 2017 at 07:14

Okay, thank you.

But how i can configure parity?