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, 3 months ago.
Misbehaviour of GPIO PWM in nucleo_f091rc and STM32f091rc
Hi, I am using nucleo_f091rc and STM32f091rc for my application.I am facing some strange behavior when i configure and enable PWM on pin PC7. I have configured PWM on pins PB4 and PC7. In stead of enabling PWM on PC7 pin, PWM is getting enabled on PB4 pin. I see pin PB4 toggling using oscilloscope. I had some research on this and found that different versions of mbed OS behave differently for my same application code. I observed that when i compile my application with (PWM enabled on PC7) with mbed OS version 5.4.0 or lesser then PWM get enabled correctly on PC7 which it should do but when i switch mbed OS version to 5.4.1 or more then i face this issue. In stead of enabling PWM on PC7, PWM gets enabled on PB4. mbed OS version more than 5.4.0 behave the same. I mean for mbed OS version 5.4.1 and more than 5.4.1, it is enabling PWM on wrong pin but using earlier versions it is working fine(even 5.3 version also works fine and enables PWM on intended pin only.) Regards Narendra Singh
1 Answer
7 years, 3 months ago.
Hi,
Can you please update the mbed Library to the latest version (mbed lib v149 = mbed-os-5.5.5) and check if the problem persists ?
Regards