Lets try to list all the tasks you have in your system and their priorities -
- IP task - Priority is 6
#define ipconfigIP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )
. vtcp_server_Interface
task - The code snippet your shared shows it at priority 6.
Please change its priority to 5.{ xTaskCreate( vtcp_server_Interface, “TCP_TUNING_RX”, 5000, NULL, 6, NULL ); }
{ xTaskCreate( vtcp_server_Interface, “TCP_TUNING_RX”, 5000, NULL, 5, NULL ); }
tcp_stack_test
tasks -
Lets change the UDP test tasks priorities to 5.void tcp_stack_test(void) { #ifdef TEST_TCP_SEND xTaskCreate( vTCPSendUsingStandardInterface, “TCP_TX”, TEST_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL ); #endif #ifdef TEST_TCP_RECEIVE xTaskCreate( vTCPReceivingUsingStandardInterface, “TCP_RX”, TEST_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL ); #endif #ifdef TEST_UDP_SEND xTaskCreate( vUDPSendUsingStandardInterface, “UDP_TX”, TEST_TASK_STACK_SIZE, NULL, 7, NULL ); #endif #ifdef TEST_UDP_RECEIVE xTaskCreate( vUDPReceivingUsingStandardInterface, “UDP_RX”, TEST_TASK_STACK_SIZE, NULL, 7, NULL ); #endif }
void tcp_stack_test(void) { #ifdef TEST_TCP_SEND xTaskCreate( vTCPSendUsingStandardInterface, “TCP_TX”, TEST_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL ); #endif #ifdef TEST_TCP_RECEIVE xTaskCreate( vTCPReceivingUsingStandardInterface, “TCP_RX”, TEST_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL ); #endif #ifdef TEST_UDP_SEND xTaskCreate( vUDPSendUsingStandardInterface, “UDP_TX”, TEST_TASK_STACK_SIZE, NULL, 5, NULL ); #endif #ifdef TEST_UDP_RECEIVE xTaskCreate( vUDPReceivingUsingStandardInterface, “UDP_RX”, TEST_TASK_STACK_SIZE, NULL, 5, NULL ); #endif }
I assume that you have disabled all the tasks other than the ones mentioned above. Would you please make the priority changes as I suggested above and share the result.