5 years, 11 months ago.

PwmOut does not work any more with latest MBed-OS 5.11.0 lib

Hello It seems that PwmOut does not work any more with MBed-OS 5.11.0 rev 4930:2fd0c5c (which creates .bin file) It worked with MBed-OS 5.11.0 rev 3241:c9e63f1 (which creates .hex file).

Codes crashes at the very begenning.

code for test :

  1. include "mbed.h" DigitalInOut AOut(P1_8,PIN_OUTPUT, PullUp, 0); PwmOut led(LED2);

int main() { printf("Bonjour7\r\n"); specify period first, then everything else led.period(0.05f); led.pulsewidth(0.04f); while(1) { AOut=1; wait (1);

AOut=0; wait (1);

} }

error message ++ MbedOS Error Info ++ Error Status: 0x80FF0100 Code: 256 Module: 255 Error Message: Fatal Run-time error Location: 0x35D6D Error Value: 0x0 Current Thread: Id: 0x200089B0 Entry: 0x32D35 StackSize: 0x1000 StackMem: 0x200079B0 SP: 0x200088F0 For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80FF0100 MbedOS Error Info nrf failure at /extras/mbed-os.lib/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/pwm/nrf_drv_pwm.c:192

Thank you for any help

Question relating to:

The nRF52840 Development Kit is a single-board development kit for Bluetooth low energy, ANT, 802.15.4, and 2.4 GHz proprietary applications using the nRF52840 SoC.

Thank you for your answer.

I have a very strange behaviour.

When I update mbed-os library with right click on the the green circle arrow in Workspace window , green arrow vanishes and lib reference is 2fd0c5cfdb which is mbed-os 5.10.4 ! Program does show the error at the very begenning.

In revision window I force to use 6a0a86538c (mbed-os5.11.0). After compilation a .bin is generated. It runs without any apparent error, therefore PWM does not work. Led blinks only once though while loop works fine ???

I may do something wrong.

Let me know if you want me to do some additional test.

Thank you again for your support.

rgds

posted by Florent Haddad 02 Jan 2019

1 Answer

5 years, 10 months ago.

Hi Florent,

You appear to be hitting a known issue that was fixed in v5.11, please see:

Could you please double-check the revisions you mention above?

Mbed v5.11 has a commit/hash of 6a0a865:

Regards,

Ralph, Team Mbed