2021-07-14 11:38 PM
stm32g030xx.h, stm32g031xx.h, stm32g041xx.h:
these #define seems to be missing/removed from aforementioned files:
#define RCC_CCIPR_USART2SEL_Pos (2U)
#define RCC_CCIPR_USART2SEL_Msk (0x3UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x0000000C */
#define RCC_CCIPR_USART2SEL RCC_CCIPR_USART2SEL_Msk
#define RCC_CCIPR_USART2SEL_0 (0x1UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000004 */
#define RCC_CCIPR_USART2SEL_1 (0x2UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000008 */
Solved! Go to Solution.
2021-07-15 6:04 AM
Clock selection for USART2 isn't available on these devices per the RMs.
2021-07-15 2:36 AM
Hello @Community member and welcome to the Community :)
Thanks for your reported issue.
I will check this internally with the latest release of STM32CubeG0 package, and I will take the necessary action.
Imen
2021-07-15 6:04 AM
Clock selection for USART2 isn't available on these devices per the RMs.
2021-07-15 6:44 AM
You are right @TDK.
I checked the spec and I confirm that the USART2 is only applies to STM32G070xx and to STM32G0B0xx devices.
So, the HAL define is correct, and there is no missing.
Imen
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.