首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >TencentOS-tiny对STM32F103是否支持动态创建任务?

TencentOS-tiny对STM32F103是否支持动态创建任务?

提问于 2023-01-25 18:36:14
回答 1关注 0查看 89

将TencentOS Tiny移植到STM32F103时,看社区工蜂项目的tos_config.h都是将TOS_CFG_TASK_DYNAMIC_CREATE_EN 设置成0。是否可以支持设置成1? 我设置成1时报错:

...

compiling cmsis_os.c...

..\..\osal\cmsis_os\cmsis_os.c(81): warning: #223-D: function "tos_task_create_dyn" declared implicitly

err = tos_task_create_dyn(&task, thread_def->name, (k_task_entry_t)thread_def->pthread,

..\..\osal\cmsis_os\cmsis_os.c(81): warning: #188-D: enumerated type mixed with another type

err = tos_task_create_dyn(&task, thread_def->name, (k_task_entry_t)thread_def->pthread,

..\..\osal\cmsis_os\cmsis_os.c: 2 warnings, 0 errors

compiling tos_task.c...

linking...

portable01\portable01.axf: Error: L6218E: Undefined symbol tos_task_create_dyn (referred from cmsis_os.o).

Not enough information to list image symbols.

Finished: 1 information, 0 warning and 1 error messages.

"portable01\portable01.axf" - 1 Error(s), 2 Warning(s).

Target not created.

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档