This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WDT kicks in when I use os_wait

I am using PK51, which comes with RTX51 tiny. I am trying to use the os_wait command from a function. This is code I'm using.

 while (something) {
    CallFunction(some,thing,here);
     .. <continue processing> ..
 }
  CallFunction(some,thing,here) _task_ some_task {
   ..
 os_wait(K_SIG | K_TMO, 1,0);
   ..
}

According to Keil, I can use the os_wait command from a function, not just from a task. But when I run the code, the WDT seems to kick in. The WDT timeout's set at 5 seconds.
Any suggestions as to what I am doing wrong?

Thanks in advance!

Parents Reply Children