2024-05-30 10:20 PM
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
2024-05-30 10:43 PM
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.
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.