cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find the RCC Register and GPIO Register

OTosu.1
Associate II

Hi,

I try to find the RCC and the GPIO register for the STM32l432KBU, but cant find it in the datasheet. i dont know if i'm looking wrong but i just cant find it. I need the Registers to enable the uart.

Thanks for reading:grinning_face: !!

bye,

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru
2 REPLIES 2
TDK
Guru

They're in the reference manual:

https://www.st.com/resource/en/reference_manual/dm00151940-stm32l41xxx42xxx43xxx44xxx45xxx46xxx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

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

While it's always good to look it up in the RM; in software, you better rely on the CMSIS-mandated device header

https://github.com/STMicroelectronics/STM32CubeL4/blob/master/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l432xx.h

RCC->APB1ENR1 |= RCC_APB1ENR1_USART2EN;

JW