cancel
Showing results for 
Search instead for 
Did you mean: 

HAL USB CDC:How i can change baudrate and parity

danielspronk9
Associate II
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
2 REPLIES 2
jmasriera
Associate II
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.

Posted on April 27, 2017 at 07:14

Okay, thank you.

But how i can configure parity?