Possible bug, possible regression with Thread::wait, Timers and networking

08 Aug 2017

Playing with mbed and liking it so far.

I have hit a problem with Timer and Thread::wait though.

This only happens in recent versions of mbed-os so it might be a regression.

Basically calling Thread::wait stops the network from coming up.

The code below should fail to output a network address, appears to get stuck in net.connect().

If you define WORKING then it removes the call to wait and the code works.

The code also works on an earlier version of mbed-os, see the working-version branch for an mbed-os.lib file that contains a hash of a working mbed-os version.

Of course it's possible that I am doing something stupid and it works by accident.

board: NUCLEO_F767ZI toolchain: GCC_ARM code: https://github.com/wiggly/mbed-timer-bug

Wondering whether I should be raising issues in the mbed-os github repo or not.