diff --git a/subsys/portability/cmsis_rtos_v2/thread.c b/subsys/portability/cmsis_rtos_v2/thread.c index cecb2d234f3..8c5c1186b99 100644 --- a/subsys/portability/cmsis_rtos_v2/thread.c +++ b/subsys/portability/cmsis_rtos_v2/thread.c @@ -193,6 +193,7 @@ osThreadId_t osThreadNew(osThreadFunc_t threadfunc, void *arg, const osThreadAtt NULL, threadfunc, prio, 0, K_NO_WAIT); const char *name = (attr->name == NULL) ? init_thread_attrs.name : attr->name; + k_thread_name_set(&tid->z_thread, name); return (osThreadId_t)tid;