This document explains the ESP8266 RTOS SDK internal system tasks.
The main tasks and their attributes are as following:
Note: (C) means it is configurable by “menuconfig”.
This task initializes the system, including peripherals, file system, user entry function and so on. This task will delete itself and free the resources after calling app_main.
This task is freeRTOS internal idle callback task, it is created when starting the freeRTOS. Its hook function is vApplicationIdleHook. The system’s function of sleep and function of feeding task watch dog are called in the vApplicationIdleHook.
This task is the processor of freeRTOS internal software timer.
This task is to process Wi-Fi hardware driver and stack. It posts messages from the logic link layer to the upper layer TCP/IP stack after transforming them into ethernet packets.
The task is for system power management. It will check if the system can sleep right now, and if it is, it will start preparing for system sleep.
The task is the processor of high priority hardware timer. It mainly process Wi-Fi real time events. It is suggested that functions based on this component should not be called in application, because it may block other low layer Wi-Fi functions.
The task is the main task of TCP-IP stack(LwIP) , it is to deal with TCP-IP packets.
The task processes system events, for example, Wi-Fi and TCP-IP stack events.
In general, the priority of user task should NOT be higher than the system real timer task’s priority (12). So it is suggested that keep your user tasks’ priorities less than 12. If you want to speed up the TCP/UDP throughput, you can try to set the priority of send/receive task to be higher than the “tiT” task’s priority (8).