I solved my problem…
My problem occurs because my ISR of Ticker has send_data() of mDot library.
The send_data() seems to be use a Ticker or timeout interrupt, and so
a problem occurs if send-data() is used in an ISR of a Ticket/Timeout.
Thank you!
I tested your example code, but the code is not working.
After the program starts, led1 is blinking.
But after 2 seconds (it seems to be at ticker timeout),
the led1 is not blinking, and it stops.
A problem seems to occur at the the first interrupt of the ticker.
(I think that your mDot library may affect the ticker of the mbed-os, that is, TIM5 module of STM32F411)
My question is not how to use Ticker or Timeout in mbed-os….
It seems that there is conflict between mbed-os and mdot-library.
Which timer module (TIMx) of STM32F411 MCU is used in mdot-library?
Can I change the timer module (TIMx) of STM32F411 used in mdot-library?