我正在尝试为我的主板(XMC4500 Relax Kit)编译μcOSIII但是当我尝试编译我的文件时,我得到以下输出:
'Building target: XMC4500_uCOSIII.elf'
'Invoking: ARM-GCC C Linker'
"C:\DAVE-3.1.10\ARM-GCC/bin/arm-none-eabi-gcc" -T"../XMC4500_uCOSIII.ld" -nostartfiles -L"C:\DAVE-3.1.10\eclipse\/../CMSIS/Infineon/Lib" -L"C:\DAVE-3.1.10\eclipse\/../Examples/Lib" -L"C:\DAVE-3.1.10\eclipse\/../emWin/Start/GUI" -Wl,-Map,"XMC4500_uCOSIII.map" -mcpu=cortex-m4 -mthumb -g3 -gdwarf-2 -o "XMC4500_uCOSIII.elf" "@makefile.rsp"
Libraries/uCOS-III/Source/os_core.o: In function `OSIntExit':
D:\Dokumente\Dropbox\FH\4Semester\BAK Arbeit\workspace\XMC4500_uCOSIII\Debug/../Libraries/uCOS-III/Source/os_core.c:344: undefined reference to `OSIntCtxSw'
Libraries/uCOS-III/Source/os_core.o: In function `OSSched':
D:\Dokumente\Dropbox\FH\4Semester\BAK Arbeit\workspace\XMC4500_uCOSIII\Debug/../Libraries/uCOS-III/Source/os_core.c:421: undefined reference to `OSCtxSw'
Libraries/uCOS-III/Source/os_core.o: In function `OSStart':
D:\Dokumente\Dropbox\FH\4Semester\BAK Arbeit\workspace\XMC4500_uCOSIII\Debug/../Libraries/uCOS-III/Source/os_core.c:728: undefined reference to `OSStartHighRdy'
Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o: In function `OSTaskSwHook':
D:\Dokumente\Dropbox\FH\4Semester\BAK Arbeit\workspace\XMC4500_uCOSIII\Debug/../Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.c:335: undefined reference to `OS_CPU_FP_Reg_Push'
D:\Dokumente\Dropbox\FH\4Semester\BAK Arbeit\workspace\XMC4500_uCOSIII\Debug/../Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.c:339: undefined reference to `OS_CPU_FP_Reg_Pop'
collect2.exe: error: ld returned 1 exit status
make: *** [XMC4500_uCOSIII.elf] Error 1
**** Build Finished ****
如果我做对了,文件os_core.o和os_cpu_c.o没有正确链接到项目。 我已经尝试通过单击“属性 - > C / C ++构建 - >设置 - > ARM GCC链接器 - >杂项 - >其他对象”链接这些目标文件。再次编译后,我得到以下输出:
'Building target: XMC4500_uCOSIII.elf'
'Invoking: ARM-GCC C Linker'
"C:\DAVE-3.1.10\ARM-GCC/bin/arm-none-eabi-gcc" -T"../XMC4500_uCOSIII.ld" -nostartfiles -L"C:\DAVE-3.1.10\eclipse\/../CMSIS/Infineon/Lib" -L"C:\DAVE-3.1.10\eclipse\/../Examples/Lib" -L"C:\DAVE-3.1.10\eclipse\/../emWin/Start/GUI" -Wl,-Map,"XMC4500_uCOSIII.map" -mcpu=cortex-m4 -mthumb -g3 -gdwarf-2 -o "XMC4500_uCOSIII.elf" "@makefile.rsp" D:/Dokumente/Dropbox/FH/4Semester/BAK\ Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o D:/Dokumente/Dropbox/FH/4Semester/BAK\ Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Source/os_core.o
arm-none-eabi-gcc: error: D:/Dokumente/Dropbox/FH/4Semester/BAK\: No such file or directory
arm-none-eabi-gcc: error: Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o: No such file or directory
arm-none-eabi-gcc: error: D:/Dokumente/Dropbox/FH/4Semester/BAK\: No such file or directory
arm-none-eabi-gcc: error: Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Source/os_core.o: No such file or directory
make: *** [XMC4500_uCOSIII.elf] Error 1
**** Build Finished ****
文件和目录存在以外的错误:(任何人都知道如何解决这个问题或者我的第一步已经错了?