CubeMX counts USART parity as data? A bug in CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-01 3: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.
- Labels:
-
STM32CubeMX
-
STM32H7 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-01 5: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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-01 7: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-02 12:14 PM
Has anyone ever user parity bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-02 12:15 PM
Used by the bootloader as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
