Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 7 months ago.
Generating PWM on any pin?!
Hi,
I can't generate PWM on any PWM enabled pin on ST NUCLEO 334R8. The program hangs if I delcare a PwmOut on any pwm enabled pin. I tried PA_8, PA_9, PB_4, PB_5, PC_2 ...) I'm compiling offline with Keil MDK 5, and trying to debug, but without any reasonable results. What am I doing wrong?
Posting a small program that shows the problem would probably help. Are you watching the debug messages over the mbed interface? If something like this fails, there is usually an error message. Or if you set a breakpoint inside the PWM constructor you might be able to step through and see why it fails.
posted by Graham S. 03 Apr 2017The program hangs right there, where I declare PwmOut, on any pin. I actually tried allmost all pins (PWM related), and I allways get the runtime error. I don't get any error feedback on uart.
posted by Gorazd Rosbach 04 Apr 2017