This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TM4C129ENCPDT: sendto() not working from different task

Part Number: TM4C129ENCPDT

Tool/software: TI-RTOS

Hi,

I'm running a program similar to the udpEcho sample.

It has two tasks:

  • Task1 is like the echoFxn() of the udpEcho sample (receives data and then sends back something).
  • Task2 is waiting for user interaction, then calls sendto() with the same socket/address as in Task1.

Task1 works fine, but sendto() in Task2 returns -1.

Is there maybe a special setting or option to make sendto() work from a different task?

Thank you,
Gergely