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.
8 years, 9 months ago.
Ticker problems on mDot
We're having problems where creating a Ticker seems to be hanging the system. Trawling through the Questions, it looks like there's been similar issues on other mBed platforms. I have synced to the latest mBed libraries etc. and am (currently) using the online compiler. This means that my only real debuging tool is good ol' printf, and this is showing that not only is the ticker callback function never being hit, execution of main() comes to a stop at the point where the ticker is attached.
Anyone have any ideas?
many thanks
Can you share a code snippet to be tested?
posted by Martin Kojtal 09 Feb 2016No problem. The following is a snippet of the code that grinds to a halt. The printf after the attach never happens and the printf in the callback function never appears.
There is, of course, more code than this however commenting out large sections have proven that that it has no effect on the result.
Any suggestions for a fix, workaround or alternative will be greatly appreciated.
-H
AFter battling with Ticker for too much time, I have abandoned it and stuck with RtosTimer which works fine.
posted by Howard Bray 10 Feb 2016