Closed
Description
The Ticker class is bugged for NUCLEO-F030R8 and NUCLEO-L053R8 as for some frequency high enough the Ticker stops unexpectedly. I.e for a 0.0001s period, the ticker stops after about 390ms.
The code used is:
#include "mbed.h"
Ticker toggle_led_ticker;
DigitalOut led1(LED1);
void toggle_led() {
led1 = !led1;
}
int main() {
// Init the ticker with the address of the function (toggle_led) to be attached and the interval (100 us)
toggle_led_ticker.attach_us(&toggle_led, 100);
while (true) {
// Do other things...
}
}