5 years, 10 months ago.

eth.attach() callback doesn`t work without idle time? (no wait() - no callback)

Hi! Experiencing some troubles with eth.attach() function. Here is an example:

Import programmbed-os-ethattach-fault

eth.attach() doesn`t work with threads without wait time

Uncomment Thread::wait(10); in onemorethread, and callbacks will work. Also, you can set thread priority to low, and all will work again.

But in my program I can`t set any "wait"s.

Is it a bug, or there are can be some good solution?

To reproduce - use nucleo with ethernet (767zi in my case), and unplug cable after successful connection. When there is a wait () - callback works,

Be the first to answer this question.