2020-05-01 03:10 PM
Actually it says it counts parity bit in USART word lenght. I'm pretty sure that is not so and perhaps even not what they would actually do, and what is word in this contekst anyway.
2020-05-01 05:19 PM
It counts it in the word length. Whether or not you consider it data is up to you. CubeMX is just following what the chip does. Start bit + word + stop bit(s).
2020-05-01 07:31 PM
ST has done this forever.
8E1 would be 9-bit with Even Parity in the 9th bit, advisable to mask the read of the data register
2020-05-02 12:14 PM
Has anyone ever user parity bit.
2020-05-02 12:15 PM
2020-05-06 10:48 PM
Programming the usart was about the very first thing I did with STM32 and CubeMX and I immediately ran into a CubeMX bug. I had to setup a communication using 8 databits, even parity, one stopbit and couldn't get it to work. After a bit of frustration I tried the same program but I modified the code on both ends to use 8 databits and NO parity and it worked right away. It turned out that, when using 8E1 parameters, CubeMX has to set the usart to 9 databits but instead it set 8 databits, causing the communication to fail. So whenever I make a modification to the project in MX and regenerate the code, I have to remember to manually correct the generated output.