将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.
相似问题