Search found 3 matches

by Sakamato
Thu Jan 25, 2018 9:12 am
Forum: STM32 Support
Topic: STM32F4--How to start PWM12/TIM12?
Replies: 5
Views: 4835

Re: STM32F4--How to start PWM12/TIM12?

Hi,

Thanks for the reply but I still don't know what to configure. The code in pwm_lld.c seems to support TIM12 as other timers, and the code in pwm_lld.h relating to timers are mostly error handlers, after configuring them things didn't turn out to be better.

It is not matter of configuring ...
by Sakamato
Fri Jan 19, 2018 9:14 am
Forum: STM32 Support
Topic: STM32F4--How to start PWM12/TIM12?
Replies: 5
Views: 4835

Re: STM32F4--How to start PWM12/TIM12?

Hi,

Not all timers are supported in all drivers, the change you made is not sufficient, just look for the STM32_PWM_USE_TIMxx macros in pwm_lld.c and pwm_lld.h files, that will reveal all places where changes are necessary.

Giovanni

Thanks for the reply but I still don't know what to configure ...
by Sakamato
Wed Jan 17, 2018 1:54 pm
Forum: STM32 Support
Topic: STM32F4--How to start PWM12/TIM12?
Replies: 5
Views: 4835

STM32F4--How to start PWM12/TIM12?

Hi,

I'm trying to output PWM wave from a port using TIM12. Previously I succeeded in doing so on a port using TIM8, by the following code(or sth. like that):

PWMConfig pwm8cfg = {
100000, /* 1MHz PWM clock frequency. */
1000, /* Initial PWM period 1ms. */
NULL,
{
{PWM_OUTPUT_ACTIVE ...