cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 peripheral configuration order

oosthuizen
Associate II
Posted on February 13, 2013 at 15:18

Is there a specific configuration order for peripherals I need to adhere to so peripherals will function correctly.

#stm32f0-peripheral-config
2 REPLIES 2
Posted on February 13, 2013 at 15:39

Is there a specific configuration order for peripherals I need to adhere to so peripherals will function correctly.

Yeah, make sure you turn the clocks on first. And initialize them before enabling them.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
oosthuizen
Associate II
Posted on February 13, 2013 at 15:47

Thanks clive1 but I should clarify. If I want to service the ADC that is clocked with TIM2 with the DMA what should the order of config be? Sonthing like this:

RCC

GPIO

DMA

ADC

TIM2