Skip to main content
OTosu.1
Associate
December 8, 2020
Solved

Where to find the RCC Register and GPIO Register

  • December 8, 2020
  • 2 replies
  • 1144 views

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,

This topic has been closed for replies.

2 replies

TDK
TDKBest answer
December 8, 2020
"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
Super User
December 8, 2020

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