6 years, 9 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

6 years, 9 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

Hi, Ya, i had tested with mbed os version 5.5.5 and am facing the same issue. Issue still persists with 5.5.5 version also.

Regards Narendra Singh

posted by kumar singh 17 Aug 2017

Hi, Is there any update on this issue? I have tested with different versions of mbed OS 5.4.1 and later and all behave the same issue whereas earlier to this version, i am not getting this issue for the same piece of code compiled.

posted by kumar singh 19 Aug 2017