Hi Julian,
This does seem very odd. The only API that I am aware of that automatically raises the priority of a task is GateMutexPri but that is not being used here and even if it were being used, it would never change the priority to 9 as there is no other task with priority 9.
Can you try the following ?
- Add a breakpoint in NetworkIPAddr() at Task_create(), step over and check the task priority immediately after task creation. I want to know if the task priority is correct when the task got created and gets elevated later on. You could also step into the Task_create() function.
- Add a breakpoint at the beginning of connect2server() function and when the breakpoint hits check the task priority.
Best,
Ashish