2017-02-21 09:02 PM
I am using visualgdb.com tutorial 'Using STM32 timers in PWM mode. It has a function calls 'GPIO_PinAFConfig' as well as 'TIM_OC1Init' but I cannot find it in any of the headers.
2017-02-21 09:14 PM
I use uV5, everything seems a little easier... do you have cubeMX ?
I start PWM like this...
if (HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1) != HAL_OK) { /* PWM Generation Error */ sprintf(string,'HAL_TIM11_PWM_Start Fail\n\r'); puts(string); }
2017-02-21 10:29 PM
Thanks Nick
I do not have cubeMX. I will try to use your suggestion and see if it sorts out the problem.
Regards Anton
2017-02-21 10:45 PM
I initialise the pins and functions in cubeMX, which processor is it ?