Implemented recommended fix from https://github.com/STMicroelectronic… #12099
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The baud rate was calculated incorrectly for STM32F4 targets that have UART9 and UART10 peripherals. A fix has been implemented as recommended from STMicroelectronics/STM32CubeF4#5.
Summary of changes
Ensures that the baud rate register value is calculated correctly for STM32F4 targets that have UART9 and UART10 peripherals.
When the target
s clock frequency is configured such that APB1 is different from APB2 the baud rates for UART9 and UART10 will not be calculated correctly and the device will not have it
s expected baud rate when interfacing with other devices. This fixes #12090Impact of changes
There are no implications for users that were not affected by this bug. It will only execute the fix for the devices that have a UART9 and UART10 peripheral.
Migration actions required
No mitigation actions are required for this fix.
Documentation
None
Pull request type
Test results
Reviewers
@jeromecoutant