feat(task): Change all tasks size 4 times the original

This commit is contained in:
Dong Heng
2018-07-09 11:35:09 +08:00
parent 0a0db61155
commit 1ba1e5ccbd
20 changed files with 21 additions and 21 deletions

View File

@ -185,7 +185,7 @@ void uart_init(void)
xQueueUart = xQueueCreate(32, sizeof(os_event_t));
xTaskCreate(uart_task, (uint8_t const*)"uTask", 512, NULL, tskIDLE_PRIORITY + 2, &xUartTaskHandle);
xTaskCreate(uart_task, (uint8_t const*)"uTask", 2048, NULL, tskIDLE_PRIORITY + 2, &xUartTaskHandle);
}
#endif

View File

@ -1,10 +1,10 @@
gwen:
crypto: 8943c89
espnow: 8943c89
core: 15348a7
net80211: 68f6a7c
pp: bdb3c08
core: fdd8880
net80211: fdd8880
pp: fdd8880
pwm: 0181338
smartconfig:9ec59b5
wpa: 8943c89
wps: 8943c89
wps: fdd8880

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -98,7 +98,7 @@ esp_err_t esp_event_loop_init(system_event_cb_t cb, void *ctx)
s_event_queue = wifi_queue_create(32, sizeof(system_event_t));
if(s_event_queue == NULL)
return ESP_ERR_NO_MEM;
if(wifi_task_create(esp_event_loop_task, "esp_event_loop_task", 512, NULL, 2) == NULL) {
if(wifi_task_create(esp_event_loop_task, "esp_event_loop_task", 2048, NULL, 2) == NULL) {
return ESP_ERR_NO_MEM;
}
s_event_handler_cb = cb;

View File

@ -103,7 +103,7 @@ void call_user_start(void)
wifi_os_init();
assert(wifi_task_create(user_init_entry, "uiT", 512, NULL, wifi_task_get_max_priority()) != NULL);
assert(wifi_task_create(user_init_entry, "uiT", 2048, NULL, wifi_task_get_max_priority()) != NULL);
wifi_os_start();
}

View File

@ -86,7 +86,7 @@
#define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 100 )
#define configMAX_PRIORITIES 15
#define configMINIMAL_STACK_SIZE ( ( unsigned short )176 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 768 )
//#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 0
@ -106,7 +106,7 @@
#if configUSE_TIMERS
#define configTIMER_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
#define configTIMER_QUEUE_LENGTH (10)
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 512 )
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 2048 )
#endif
/* Co-routine definitions. */

View File

@ -387,8 +387,8 @@ endmenu # UDP
config TCPIP_TASK_STACK_SIZE
int "TCP/IP Task Stack Size"
default 512
range 512 2048
default 2048
range 2048 8192
help
Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
Setting this stack too small will result in stack overflow crashes.

View File

@ -188,5 +188,5 @@ void app_main()
{
ESP_ERROR_CHECK( nvs_flash_init() );
initialise_wifi();
xTaskCreate(&http_get_task, "http_get_task", 4096, NULL, 5, NULL);
xTaskCreate(&http_get_task, "http_get_task", 16384, NULL, 5, NULL);
}

View File

@ -336,5 +336,5 @@ void app_main(void)
{
ESP_ERROR_CHECK( nvs_flash_init() );
initialise_wifi();
xTaskCreate(&https_get_task, "https_get_task", 2048, NULL, 5, NULL);
xTaskCreate(&https_get_task, "https_get_task", 8192, NULL, 5, NULL);
}

View File

@ -58,7 +58,7 @@ extern const uint8_t server_root_cert_pem_end[] asm("_binary_server_root_cert_
"\r\n"
#define WOLFSSL_DEMO_THREAD_NAME "wolfssl_client"
#define WOLFSSL_DEMO_THREAD_STACK_WORDS 2048
#define WOLFSSL_DEMO_THREAD_STACK_WORDS 8192
#define WOLFSSL_DEMO_THREAD_PRORIOTY 6
#define WOLFSSL_DEMO_SNTP_SERVERS "pool.ntp.org"

View File

@ -51,7 +51,7 @@ const int CONNECTED_BIT = 1<<0;
#define MQTT_PORT 1883 /* MQTT Port*/
#define MQTT_CLIENT_THREAD_NAME "mqtt_client_thread"
#define MQTT_CLIENT_THREAD_STACK_WORDS 2048
#define MQTT_CLIENT_THREAD_STACK_WORDS 8192
#define MQTT_CLIENT_THREAD_PRIO 8
static const char *TAG = "example";

View File

@ -327,5 +327,5 @@ void app_main(void)
{
ESP_ERROR_CHECK( nvs_flash_init() );
initialise_wifi();
xTaskCreate(&openssl_client_task, "openssl_client", 2048, NULL, 6, NULL);
xTaskCreate(&openssl_client_task, "openssl_client", 8192, NULL, 6, NULL);
}

View File

@ -255,5 +255,5 @@ void app_main(void)
{
ESP_ERROR_CHECK(nvs_flash_init());
initialise_wifi();
xTaskCreate(&openssl_task, "openssl_task", 2048, NULL, 5, NULL);
xTaskCreate(&openssl_task, "openssl_task", 8192, NULL, 5, NULL);
}

View File

@ -336,5 +336,5 @@ void app_main(void)
{
ESP_ERROR_CHECK( nvs_flash_init() );
initialise_wifi();
xTaskCreate(&openssl_server_task, "openssl_server", 2048, NULL, 6, NULL);
xTaskCreate(&openssl_server_task, "openssl_server", 8192, NULL, 6, NULL);
}

View File

@ -210,6 +210,6 @@ void user_init(void)
/* need to set opmode before you set config */
wifi_set_opmode(STATION_MODE);
xTaskCreate(smartconfig_task, "smartconfig_task", 256, NULL, 2, NULL);
xTaskCreate(smartconfig_task, "smartconfig_task", 1024, NULL, 2, NULL);
}

View File

@ -52,5 +52,5 @@ static void wps_task(void* pvParameters)
void user_init(void)
{
xTaskCreate(wps_task, "wps_task", 1024, NULL, 4, NULL);
xTaskCreate(wps_task, "wps_task", 4096, NULL, 4, NULL);
}

View File

@ -19,5 +19,5 @@ void unityTask(void *pvParameters)
void app_main(void)
{
wifi_station_set_auto_connect(false);
xTaskCreate(unityTask, "unityTask", 2048, NULL, UNITY_FREERTOS_PRIORITY, NULL);
xTaskCreate(unityTask, "unityTask", 8192, NULL, UNITY_FREERTOS_PRIORITY, NULL);
}