Skip to main content
Visitor II
May 31, 2024
Question

F1 Series Beginner Steps to enable peripherals

So I’ve been following a udemy course and I’ve been picking things up and learning how to change registers for peripherals and how to enable them and such but the course just tells me what I need to enable bit wise to enable the specific peripherals but I just had a thought, if I didn’t have this course, where would I find what I need to enable? Is it in the data sheet and I’m not looking hard enough? Like for gpio I need to enable the port clock before I can configure specific pins

This topic has been closed for replies.

1 reply

RomainR.
ST Employee
May 31, 2024

Hi @jdsus 

Peripheral clock gating is specific to the STM32 architecture, and by default all peripheral clocks are switched off.
See section 5.3.2 Peripheral clock gating in RM0008 for an explanation.

https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

Best regards,

romain

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.