I have had the same problem on the STM3210E-EVAL board using A8 PWM output from timer 1. Using the IAR compiler V5.4 I have found the following
1). TIM_OCInitTypeDef , this needs to be defined outside of the initialisation function, if it is a local variable it does not work. (not sure why yet). 2). Timer 1 has a master output enable, this must be turned on. It is different from timer 3 etc. (unable to find example using timer 1 in the ST examples). After setting up the modes etc enable using the following:- TIM_Cmd(TIM1, ENABLE); TIM_CtrlPWMOutputs(TIM1, ENABLE); Hope this helps, Dave