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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
There is bug somewhere in ticker.
I'm using nRF51822-EK board with lastest mbed-src, nRF51822 and BLE_API library revisions.
And with this test code:
#include "mbed.h" DigitalOut led1(LED1); DigitalOut led2(LED2); Ticker ticker; Ticker ticker2; void periodicCallback(void) { led1 = !led1; } void periodicCallback2(void) { led2 = !led2; } int main(void) { led1 = 0; led2 = 0; ticker.attach(periodicCallback, 1); ticker2.attach(periodicCallback2, 1); while (true); }It stucks after first call of periodicCallback and periodicCallback2 is never called. I.e. led1 is lit and led2 is never lit.