To clarify the tasks:
NetworkTask (priority of 8) - this task is creating the network (NC_SystemOpen, NC_NetStart, etc).
TxDataTask (priority of 4) - this task is opening up a UDP socket, and has the sendto and task_sleep calls inside a while(1) loop. In this task I'm also printing out some debug information to the console.
So far - I've determined the with task_sleep(1) in the code
- the EMAC Send function gets executed regularly. I put a counter in there and saw it going at about 30000 times a sec
- I get an output data rate of about 360 Mb/s.
- CPU load is at about 28% utilization.
When the don't have the task_sleep(1) in the code
- the EMAC Send counter gets stuck at 2
- I get 0 data out.
- the CPU load returns 0 percent utilized.
The CPU load returning 0 seems strange as I'm getting the regular printouts from the TxDataTask.
Is the lack of a task sleep preventing the EMAC Send from executing?