Posted on September 26, 2012 at 18:20Hello!I'm trying to get an STM32F407 with the LQFP176 Pinout to output in OC PWM1 mode. My code is as follows: /* set up GPIO as timer output GPIOI 5, TIM 8 CH 1*/ RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOI...
Posted on September 28, 2012 at 20:55It works now, thank you!Problem was with the GPIO_PIN_174 line, I was defining it elsewhere as a regular GPIO pin, and then here as a timer Output Compare pin.
Posted on September 26, 2012 at 20:03GPIO_PIN_174 is defined in gpio_cfg.h as:GPIO(GPIO_PIN_174, GPIOI, 5, OUTPUT,ACTIVE_HIGH,0)/* pin174. */changed the line to :RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM8, ENABLE);But still nothing.