diff --git a/RBcore/drv_interface.c b/RBcore/drv_interface.c index e2b414d..7262078 100644 --- a/RBcore/drv_interface.c +++ b/RBcore/drv_interface.c @@ -267,7 +267,7 @@ void Drv_InterfaceInit(void) const osThreadAttr_t Custom_attributes = { .name = MODULE_NAME_CUSTOM, - .stack_size = 2 * 1024, + .stack_size = 2048, .priority = (osPriority_t) osPriorityRealtime1, }; (void)osThreadNew(Custom_Task, NULL, &Custom_attributes); @@ -275,7 +275,7 @@ void Drv_InterfaceInit(void) // 创建电机任务 const osThreadAttr_t motor_task_attributes = { .name = MODULE_NAME_MOTOR, - .stack_size = 1024, + .stack_size = 2048, .priority = (osPriority_t) osPriorityRealtime1, }; (void)osThreadNew(MotorTask, NULL, &motor_task_attributes);