cancel
Showing results for 
Search instead for 
Did you mean: 

Some USART2 #define seems to be missing from stm32g030xx.h, stm32g031xx.h, stm32g041xx.h

GBassi
Associate

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 */

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Clock selection for USART2 isn't available on these devices per the RMs.

0693W00000CzhtiQAB.png 

0693W00000CzhtxQAB.png

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
TDK
Guru

Clock selection for USART2 isn't available on these devices per the RMs.

0693W00000CzhtiQAB.png 

0693W00000CzhtxQAB.png

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen