diff --git a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
index 9e348f367193a913e179e1f76d6a26393077be90..17eb887448f960c17a8d13b2bd27af07f9773699 100644
--- a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
+++ b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvoptx
@@ -152,25 +152,25 @@
0
0
- 28
+ 245
1
- 134231898
+ 134229606
0
0
0
0
0
1
- ..\..\..\..\examples\hello_world\hello_world.c
+ ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c
- \\TencentOS_tiny\../../../../examples/hello_world/hello_world.c\28
+ \\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\245
1
0
- 245
+ 251
1
- 134229606
+ 134229624
0
0
0
@@ -179,23 +179,23 @@
1
..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c
- \\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\245
+ \\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\251
2
0
- 251
+ 28
1
- 134229624
+ 0
0
0
0
0
0
- 1
- ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c
+ 0
+ ..\..\..\..\examples\hello_world\hello_world.c
- \\TencentOS_tiny\../../../../arch/arm/arm-v7m/common/tos_cpu.c\251
+
@@ -835,7 +835,7 @@
kernel
- 1
+ 0
0
0
0
diff --git a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
index 3de07e320e7dc77bbc6617e6d4ad03d29124a422..a85fd8093f32b8f3c83979d1107f6560456fa455 100644
--- a/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
+++ b/board/TencentOS_tiny_EVB_MX_Plus/KEIL/hello_world/TencentOS_tiny.uvprojx
@@ -16,7 +16,7 @@
STM32L431RCTx
STMicroelectronics
- Keil.STM32L4xx_DFP.2.4.0
+ Keil.STM32L4xx_DFP.2.3.0
https://www.keil.com/pack/
IRAM(0x20000000-0x2000FFFF) IROM(0x8000000-0x803FFFF) CLOCK(8000000) FPU2 CPUTYPE("Cortex-M4")
diff --git a/kernel/core/include/tos_task.h b/kernel/core/include/tos_task.h
index f2a66e5016a754382242c79aa08fa1081aeeddd2..db7b48e0748a962c180b429eaaec9ba5373f475e 100644
--- a/kernel/core/include/tos_task.h
+++ b/kernel/core/include/tos_task.h
@@ -20,7 +20,8 @@
__CDECLS_BEGIN
-#define K_TASK_NAME_MAX (16u)
+#define K_TASK_NAME_LEN_MAX (15u)
+#define K_TASK_NAME_MAX (K_TASK_NAME_LEN_MAX + 1)
#define K_TASK_STK_SIZE_MIN (sizeof(cpu_context_t))
// task state is just a flag, indicating which manager list we are in.
diff --git a/kernel/core/tos_task.c b/kernel/core/tos_task.c
index b91f83604eef719df3f481bfb26a41948dbb14f7..496de2c29935c59e4ee2207c97b2f1e56723bf17 100644
--- a/kernel/core/tos_task.c
+++ b/kernel/core/tos_task.c
@@ -125,7 +125,7 @@ __API__ k_err_t tos_task_create(k_task_t *task,
task->prio = prio;
task->stk_base = stk_base;
task->stk_size = stk_size;
- strncpy(task->name, name, K_TASK_NAME_MAX);
+ strncpy(task->name, name, K_TASK_NAME_LEN_MAX);
#if TOS_CFG_ROUND_ROBIN_EN > 0u
task->timeslice_reload = timeslice;