cancel
Showing results for 
Search instead for 
Did you mean: 

about enabling peripheral in STM32CubeMx

Wissem Chouchene
Associate

When enabling a peripheral in STM32CubeMx (switch from disable to enable) Does this mean that its clock wil be activated in the program after generating the initialization code for a given IDE 

and we don't need to insert the   __HAL_RCC_peripheral_CLK_ENABLE() function ? 

thank you 

Wissem

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, STM32CubeMX's code generator takes care of that.

<grumpy mode>

You could have easily checked it yourself in a minute by enabling a peripheral and observing the generated code, but I guess it's easier to ask 🙂

</grumpy mode>

View solution in original post

1 REPLY 1

Yes, STM32CubeMX's code generator takes care of that.

<grumpy mode>

You could have easily checked it yourself in a minute by enabling a peripheral and observing the generated code, but I guess it's easier to ask 🙂

</grumpy mode>