My code has many threads as lwip stack, http_server, UDP sender, UDP receiver etc. Everything worked fine. Until...:
I created a simple Thread, where is only infinite loop with variable test:
Code: Select all
WORKING_AREA(waThread_485toETH, 1024);
msg_t Thread_485toETH(void *arg) {
while(1){
if(ptr_var != NULL) {do some stuff}
}
return (msg_t)0;
}
MCU works and dont freeze, but in debuuger it looks like he won´ts yield a control to another thread. Another threads are(look like?) stopped and solution is putting some delay into the loop. Delay in loop is not wantable, the thread is necessary to be "every-ready".
How can I fix this problem? Thank you very much for your help;)
Adam