8 years, 3 months ago.

F446RE PWM

Hi, i wrote simple PMW program but it seems it works only for pin PB_3. If i change to other PMW port (for example PA_7) nothing happens.

#include "mbed.h"

PwmOut mpwm(PB_3);

int main() {
    
    mpwm.period(1.0f);
    mpwm.write(0.50f);
      
    while(1) {
    }
}

Could, someone explain it to me ? Thanks

2 Answers

8 years, 2 months ago.

I wonder if this problem solved or not. I have the same problem and have no idea why only PB3 works.

Unfortunately i still don't know why is that. Maybe it's a bug in the software.

posted by James Jhceiw 31 Jan 2016
8 years, 3 months ago.

Do you have anything attached to the board? Did you try any additional PWM outputs other than PA_7?

Board is connected to several stepper motor drivers, i have tried to use other PMW outputs but only PB_3 works fine. The board is out of the box, not modified in any way. I wonder, do i have to connect any solder bridge ?

posted by James Jhceiw 29 Dec 2015