ucos移植到STM32上一直报错

2019-07-14 16:25发布

我已添加ucos-ii.h和os_cpu_a.asm,编译时显示如下错误,请大家帮忙看一下问题出在哪里?
ucos.axf: Error: L6218E: Undefined symbol OSPrioCur (referred from os_cpu_a.o).
ucos.axf: Error: L6218E: Undefined symbol OSPrioHighRdy (referred from os_cpu_a.o).
ucos.axf: Error: L6218E: Undefined symbol OSRunning (referred from os_cpu_a.o).
ucos.axf: Error: L6218E: Undefined symbol OSTCBCur (referred from os_cpu_a.o).
ucos.axf: Error: L6218E: Undefined symbol OSTCBHighRdy (referred from os_cpu_a.o).
ucos.axf: Error: L6218E: Undefined symbol OSIntExit (referred from os_cpu_c.o).
ucos.axf: Error: L6218E: Undefined symbol OSIntNesting (referred from os_cpu_c.o).
ucos.axf: Error: L6218E: Undefined symbol OSTimeTick (referred from os_cpu_c.o).
ucos.axf: Error: L6218E: Undefined symbol OS_CPU_SysTickClkFreq (referred from os_cpu_c.o).
ucos.axf: Error: L6218E: Undefined symbol OSLockNesting (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSRdyGrp (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSRdyTbl (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSTCBFreeList (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSTCBList (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSTCBPrioTbl (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSTaskCtr (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_Dummy (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_MemCopy (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_Sched (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_StrCopy (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_StrLen (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OS_TCBInit (referred from os_task.o).
ucos.axf: Error: L6218E: Undefined symbol OSTime (referred from os_time.o).
Target not created


友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
6条回答
szj0213
1楼-- · 2019-07-14 22:38
看看路径添加好了么
该包含的头文件都包含了么
十个名字V
2楼-- · 2019-07-15 03:39
在UCOS_ii.h中定义了 OS_EXT  INT8U             OSPrioCur;
在os_cpu_a.asm中定义了 EXTERN  OSPrioCur
这两个文件我都已添加到工程中
gsdafs
3楼-- · 2019-07-15 07:58
编译元件中头文件路径有没有设置好
niggle
4楼-- · 2019-07-15 13:47
 精彩回答 2  元偷偷看……
新星之火12138
5楼-- · 2019-07-15 15:21
在哪个文件里添加UCOS_ii.h?
nhonglan
6楼-- · 2019-07-15 15:55
一步一步做不会错的,后面自己学懂了,再回头来学内核的原理

一周热门 更多>