Why when I set the baud rate for an UART pin I have to set it to 3 times the desired value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 6:45 AM
Hello, I have an issue with Cube IDE and a Nucleo-F722ZE board. When I want a baud rate of 9600 for the UART port I need to set it to 28800 inside Cube IDE for it to be the desired value. I've tested this with two different UART adapters and both indicate that this is really happening.
UART parameters
Clock configuration of the board (the default one, I haven't changed anything here)
Thank you very much for your help!
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 8:20 AM
Probably what is happening is the HSE clock source on the board is 8 MHz while your code assumes it is 25 MHz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 8:20 AM
Probably what is happening is the HSE clock source on the board is 8 MHz while your code assumes it is 25 MHz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 1:46 PM
That was it, thank you so much. I didn't even think about that and just assumed the default board config will know that value too. You saved me from a lot of frustration.
