cancel
Showing results for 
Search instead for 
Did you mean: 

Parity for STM32F072 is not working

Gz
Senior
Posted on July 07, 2018 at 16:52

Hi All;

    I would like to know when I use HAL library for parity. I setting please see below

huart1.Init.Parity = UART_PARITY_ODD;

When I setting '

UART_PARITY_ODD' and 'UART_PARITY_EVEN' is not working.

I would like to know when I want to set it. How should I do?

#parity-check #stm32f0-hal #stm32
2 REPLIES 2
Posted on July 07, 2018 at 17:32

For 8O1 you must selected 9-BIT ODD on the STM32 side, as it counts the parity as a bit, and then you'd likely want to strip/mask on the receive side

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 13, 2018 at 02:46

Thank you.