PwmOut bug on EFM32HG?

22 Sep 2017

PwmOut in the MBED library seems to be broken since version 140 for EFM32 Happy Gecko

The program halts at the PwmOut declaration (setting output to 0).

Example code for verification:

#include "mbed.h"

PwmOut led(PA2);

int main() 
{
    led.period(4.0);
    led.write(0.5);
    while(1);
}

Which will not go past the PwmOut led(PA2); declaration.

PwmOut is working as expected with this example code on MBED version 140. (or prior)