Skip to main content
Gz_it
Associate III
Jul 7, 2018 2:52 PM UTC
Question

Parity for STM32F072 is not working

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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Jul 7, 2018 3:32 PM UTC
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Gz_it
Gz_itAuthor
Associate III
Jul 13, 2018 2:46 AM UTC
Posted on July 13, 2018 at 02:46

Thank you.