[TODO] PWM on tim9

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
ilw
Posts: 3
Joined: Tue Aug 27, 2013 3:14 pm

[TODO] PWM on tim9

Post 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
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [possible bug] PWM on tim9

Post 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
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [TODO] PWM on tim9

Post by Giovanni »

Fixed as bug #486.

Giovanni
Post Reply