天线|RF射频
直播中

陶天瑛

8年用户 182经验值
私信 关注
[问答]

uccos移植LWIP报错

仿照LWIP扩展实验7 在UCCOS上移植LWIP 老是报错··
Build target 'UCOSII'
compiling sys_arch.c...
..LWIParchsys_arch.c(184): warning:  #223-D: function "OSEventNameSet" declared implicitly
  OSEventNameSet(sem,"LWIP Sem",&err);
..LWIParchsys_arch.c: 1 warning, 0 errors
linking...
..OBJUCOSII.axf: Error: L6218E: Undefined symbol OSEventNameSet (referred from sys_arch.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
"..OBJUCOSII.axf" - 1 Error(s), 1 Warning(s).
Target not created
求大神帮忙

回帖(3)

h1654155275.5697

2020-3-20 09:32:21
这个属于UCOS裁剪功能,要想使用OSEventNameSet()函数就需要将宏OS_EVENT_NAME_EN置1,宏OS_EVENT_NAME_EN在文件os_cfg.h文件中有定义,默认为0.
举报

李焰

2020-3-20 09:44:58
在os_core.c下有这个函数的声明 困扰俩天了求解答
#if (OS_EVENT_EN) && (OS_EVENT_NAME_EN > 0u)
void  OSEventNameSet (OS_EVENT  *pevent,
                      INT8U     *pname,
                      INT8U     *perr)
{
#if OS_CRITICAL_METHOD == 3u                     /* Allocate storage for CPU status register           */
    OS_CPU_SR  cpu_sr = 0u;
#endif
····
举报

王波

2020-3-20 10:09:07
太感谢了,学习了。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分