Page 1 of 1

[TODO] PWM on tim9

Posted: Tue Apr 15, 2014 12:59 pm
by ilw
Hi,
I'm using chibios-rt 2.7.0 on a STM32f407 discovery. I'm having an issue with the timer frequency of TIM9 when used for PWM. Basically it seems to be running at twice the frequency its supposed to. I've replaced my mcuconf, chconf and halconf with clean ones and downloaded a clean latest version of chibios today but it doesn't change the problem. My code works perfectly with &PWMD8 but at twice the frequency (so period and pulsewidth are halved) with &PWMD9.

This isn't necessarily a major issue for me, but thought i should raise it in case it is a bug (or if its a feature its not clear!!)

Cheers
Ian

Re: [possible bug] PWM on tim9

Posted: Tue Apr 15, 2014 1:32 pm
by Giovanni
Hi,

It is a bug, I will add this to the list for 2.6.4.

You can workaround this by configuring APB1 and APB2 clocks to have the same frequency.

Giovanni

Re: [TODO] PWM on tim9

Posted: Tue Apr 22, 2014 9:55 am
by Giovanni
Fixed as bug #486.

Giovanni