Closed fivdi closed 4 years ago
Hi @fivdi,
Thank you for having reported this point. Your remark will be transmitted to our development teams to have this update in the frame of a future release.
With regards,
Hi @fivdi,
Thank you for this report, once again. This issue has been reported to the CubeMX team. A fix will be available in a future CubeMX release.
As this is a CubeMX-related issue and not directly related to the firmware published in this repository, please allow me to close it. Thank you for your comprehension and contribution.
With regards,
ST Internal Reference: 87089
Describe the set-up
Describe the bug
LL_RCC_SetAPB2Prescaler
is called in Projects/NUCLEO-G431RB/Examples_LL/UTILS/UTILS_ConfigureSystemClock/Src/main.c to set the APB2 prescaler on this line:The value passed to
LL_RCC_SetAPB2Prescaler
isLL_RCC_APB1_DIV_1
which is incorrect. The correct value to pass toLL_RCC_SetAPB2Prescaler
isLL_RCC_APB2_DIV_1
.At the end of the day this doesn't actually cause any problems because both
LL_RCC_APB1_DIV_1
andLL_RCC_APB2_DIV_1
are defined as 0. However, it would still make sense to useLL_RCC_APB2_DIV_1
rather thanLL_RCC_APB1_DIV_1
when appropriate.Additional context There are several other occurrences of this issue in the code.