vicui wrote on Friday, June 08, 2012:
all:
I create those tasks to run
sys_thread_new(“USB”, usb_task, NULL, configMINIMAL_STACK_SIZE, USB_TASK_PRIO);
sys_thread_new(“LED”, led_task, NULL, configMINIMAL_STACK_SIZE, LED_TASK_PRIO);
sys_thread_new(“DHCP”, dhcp_task, NULL, configMINIMAL_STACK_SIZE, DHCP_TASK_PRIO);
sys_thread_new(“POWER”, power_task, NULL, configMINIMAL_STACK_SIZE, RS485_TASK_PRIO);
sys_thread_new(“RELAY”, relay_task, NULL, configMINIMAL_STACK_SIZE, RS485_TASK_PRIO);
sys_thread_new(“OLED”, oled_task, NULL, configMINIMAL_STACK_SIZE*2, OLED_TASK_PRIO);
sys_thread_new(“COM”, serial_task, NULL, configMINIMAL_STACK_SIZE*2, COM_TASK_PRIO);
sys_thread_new(“TELNET”, telnet_task, NULL, configMINIMAL_STACK_SIZE*2, TELNET_THREAD_PRIO);
sys_thread_new(“HTTP”, http_task, NULL, configMINIMAL_STACK_SIZE*2, HTTPSERVER_THREAD_PRIO);
sys_thread_new(“SSL”, ssl_server, NULL, configMINIMAL_STACK_SIZE*8, HTTPSERVER_THREAD_PRIO);
except those, TCPIP and ethernet task are also running background, I found that SSL task can’t start, I set the #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 16 * 1024 ) )
I thinik the size is enough. but why the task with 1024B can’t work.
vincent