Skip to main content
Gz_it
Associate III
July 7, 2018
Question

Parity for STM32F072 is not working

  • July 7, 2018
  • 1 reply
  • 605 views
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.

1 reply

Tesla DeLorean
Guru
July 7, 2018
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 VenmoUp vote any posts that you find helpful, it shows what's working..
Gz_it
Gz_itAuthor
Associate III
July 13, 2018
Posted on July 13, 2018 at 02:46

Thank you.