cancel
Showing results for 
Search instead for 
Did you mean: 

F1 Series Beginner Steps to enable peripherals

jdsus
Associate

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

1 REPLY 1
RomainR.
ST Employee

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.