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
[TODO] PWM on tim9
Moderator: RoccoMarco
- 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
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
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
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times