[Resolved]ESP8266 xTaskCreate 任务堆栈最大值
-
- Posts: 27
- Joined: Tue Sep 29, 2015 4:27 pm
[Resolved]ESP8266 xTaskCreate 任务堆栈最大值
Postby bobby_jiang » Tue Sep 29, 2015 4:53 pm
Hi,
根据文档描述,RTOS SDK 创建任务的接口 xTaskCreate 为 freeRTOS自带接口,使用 xTaskCreate 创建任务时,任务堆栈设置范围为 [176, 512],在SDK中,FreeRTOSConfig.h中有定义如下:
#if configUSE_TIMERS
#define configTIMER_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
#define configTIMER_QUEUE_LENGTH (10)
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 512 )
#endif
请问,可以把 configTIMER_TASK_STACK_DEPTH 调整为2048或者1024吗?
谢谢。
Regards
Bobby
根据文档描述,RTOS SDK 创建任务的接口 xTaskCreate 为 freeRTOS自带接口,使用 xTaskCreate 创建任务时,任务堆栈设置范围为 [176, 512],在SDK中,FreeRTOSConfig.h中有定义如下:
#if configUSE_TIMERS
#define configTIMER_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
#define configTIMER_QUEUE_LENGTH (10)
#define configTIMER_TASK_STACK_DEPTH ( ( unsigned short ) 512 )
#endif
请问,可以把 configTIMER_TASK_STACK_DEPTH 调整为2048或者1024吗?
谢谢。
Regards
Bobby
Re: ESP8266 xTaskCreate 任务堆栈最大值
Postby ESP_Faye » Thu Oct 08, 2015 6:24 pm
您好,
请勿修改 FreeRTOSConfig.h,改动并不会影响底层运行,无法生效。
附件为编程方面的注意事项,请您知悉。
请勿修改 FreeRTOSConfig.h,改动并不会影响底层运行,无法生效。
附件为编程方面的注意事项,请您知悉。
- Attachments
-
- 编程错误代码示例.xls
- (22.5 KiB) Downloaded 976 times
-
- Posts: 27
- Joined: Tue Sep 29, 2015 4:27 pm
Re: ESP8266 xTaskCreate 任务堆栈最大值
Postby bobby_jiang » Sat Oct 10, 2015 11:25 am
Hi Espressif_Faye,
谢谢!
那我可以用xTaskCreate 创建任务时,任务堆栈设置为1024或者2048吗?
Regards
Bobby
谢谢!
那我可以用xTaskCreate 创建任务时,任务堆栈设置为1024或者2048吗?
Regards
Bobby
-
- Posts: 27
- Joined: Tue Sep 29, 2015 4:27 pm
Who is online
Users browsing this forum: No registered users and 27 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.