cancel
Showing results for 
Search instead for 
Did you mean: 

Help with TIM4 not work oc io pins remap

junior
Associate
Posted on July 24, 2010 at 20:59

Help with TIM4 not work oc io pins remap

#tim4remap
1 REPLY 1
junior
Associate
Posted on May 17, 2011 at 13:59

I found the problem!

I'd forgotten to enable the Clock AFIO

//

Resolution:

replace line:

RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD, ENABLE);

By

RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD | RCC_APB2Periph_AFIO, ENABLE);

Sorry thanks,