如下是build结果
**** Build of configuration Debug for project Timer ****
D:\ti\ccsv5\utils\bin\gmake -k -j4 all'Building target: Timer.out'
'Invoking: C6000 Linker'
"D:/ti/bin/cl6x" -mv6600 –big_endian –abi=eabi -O3 –symdebug:none –define=DEVICE_C6657 –display_error_number –diag_warning=225 -z -m"Timer.map" -i"D:/ti/lib" -i"D:/ti/include" –reread_libs –warn_sections –rom_model -o "Timer.out" "./src/timer_vectors.obj" "./src/timer_main.obj" -l"libc.a" "../KeyStone.cmd"<Linking>
undefined first referenced
symbol in file
——— —————-
Exception_service_routine ./src/timer_vectors.obj
KeyStone_Exception_cfg ./src/timer_main.obj
KeyStone_SL2_EDC_enable ./src/timer_main.obj
KeyStone_main_PLL_init ./src/timer_main.obj
L1P_EDC_setup ./src/timer_main.obj
L1_cache_protection ./src/timer_main.obj
LL2_EDC_setup ./src/timer_main.obj
Reset_Timer ./src/timer_main.obj
Service_Watchdog ./src/timer_main.obj
TSC_delay_ms ./src/timer_main.obj
Timer64_Init ./src/timer_main.obj
exception_record ./src/timer_vectors.obj
gDSP_Core_Speed_Hz ./src/timer_main.obj
gpBootCfgRegs ./src/timer_main.obj
gpCGEM_regs ./src/timer_main.obj
gpTimerRegs ./src/timer_main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "Timer.out" not built
>> Compilation failure
gmake: *** [Timer.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
HG:
从错误提示上看是 link阶段出错的:
可能的原因缺库文件,自定义的函数没有声明正确或使用不正确。
user4990482:
回复 HG:
首先谢谢您的解答,请问common文件夹中的KeyStone_common.c也要添加到src目录下是吗?
我添加之后build显示如下图的错误,显示缺少CSL_msmc.h CSL_msmcAux.h两个头文件,请问如何将它们添加进去呢?谢谢!