This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6678: 6678配置中断的时候ccs环境问题

Part Number: TMS320C6678


你好TI官方:

我最近在调试6678的中断案例的时候编译工程出现下面的错误,我更改了相应的工程设置也不能解决下面问题,能帮我看一下吗,谢谢。

**** Build of configuration Debug for project IPC_example_on_6678 ****

"D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building target: IPC_example_on_6678.out'
'Invoking: C6000 Linker'
"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 -g --display_error_number --diag_warning=225 --abi=coffabi -z -m"IPC_example_on_6678.map" --warn_sections -i"D:/ti/ctoolslib_1_0_0_2/packages" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --xml_link_info="IPC_example_on_6678_linkInfo.xml" --rom_model -o "IPC_example_on_6678.out" "./ipc_interrupt.obj" "./IPC_example_main.obj" "../6678.cmd" -l"D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678_elf.lib" -l"libc.a" -l"D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrace_d.c66xx_elf.lib"
<Linking>
warning #10373-D: library
"D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678
_elf.lib" contains ELF object files which are incompatible with the TI-COFF
output file. Ensure you are using the proper library.
warning #10373-D: library
"D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrac
e_d.c66xx_elf.lib" contains ELF object files which are incompatible with the
TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library
"D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678
_elf.lib" contains ELF object files which are incompatible with the TI-COFF
output file. Ensure you are using the proper library.

>> Compilation failure
warning #10373-D: library
"D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrac
e_d.c66xx_elf.lib" contains ELF object files which are incompatible with the
TI-COFF output file. Ensure you are using the proper library.

undefined first referenced
symbol in file
--------- ----------------
_CSL_chipReadReg ./ipc_interrupt.obj
_CSL_intcGlobalEnable ./ipc_interrupt.obj
_CSL_intcGlobalNmiEnable ./ipc_interrupt.obj
_CSL_intcHwControl ./ipc_interrupt.obj
_CSL_intcInit ./ipc_interrupt.obj
_CSL_intcOpen ./ipc_interrupt.obj
_CSL_intcPlugEventHandler ./ipc_interrupt.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "IPC_example_on_6678.out" not
built
gmake: *** [IPC_example_on_6678.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

下面是我的工程设置:

谢谢!

  • 这个问题没有解决 现在还是一样的errors:

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "IPC_example_on_6678.out" not

  • 请尝试在工程属性里添加一下pdk_c667x_2_0_13\packages\ti\csl\lib\c6678\c66\release目录的csl库。

  • 我在工程里面添加了上面说的库文件但是并有解决相应的问题下面是出现的错误输出:


    **** Build of configuration Debug for project IPC_example_on_6678 ****

    "D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building target: IPC_example_on_6678.out'
    'Invoking: C6000 Linker'
    "D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 -g --display_error_number --diag_warning=225 --big_endian --abi=coffabi -z -m"IPC_example_on_6678.map" --warn_sections -i"D:/ti/ctoolslib_1_0_0_2/packages" -i"D:/ti/pdk_c667x_2_0_16/packages/ti/csl/lib/c6678/c66/release" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --xml_link_info="IPC_example_on_6678_linkInfo.xml" --rom_model -o "IPC_example_on_6678.out" "./ipc_interrupt.obj" "./IPC_example_main.obj" "../6678.cmd" -l"D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678_elf.lib" -l"D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrace_d.c66xx_elf.lib" -l"libc.a"
    <Linking>
    warning #10373-D: library
    "D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678
    _elf.lib" contains ELF object files which are incompatible with the TI-COFF
    output file. Ensure you are using the proper library.
    warning #10373-D: library
    "D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrac
    e_d.c66xx_elf.lib" contains ELF object files which are incompatible with the
    TI-COFF output file. Ensure you are using the proper library.
    warning #10373-D: library
    "D:\ti\ctoolslib_1_0_0_2\packages\ti\CPTLib\projects\C667x\Debug\cpt_d.c6678
    _elf.lib" contains ELF object files which are incompatible with the TI-COFF
    output file. Ensure you are using the proper library.
    warning #10373-D: library
    "D:\ti\ctoolslib_1_0_0_2\packages\ti\DSPTraceLib\project\C66xx\Debug\dsptrac
    e_d.c66xx_elf.lib" contains ELF object files which are incompatible with the
    TI-COFF output file. Ensure you are using the proper library.

    undefined first referenced
    symbol in file
    --------- ----------------
    _CSL_chipReadReg ./ipc_interrupt.obj
    _CSL_intcGlobalEnable ./ipc_interrupt.obj
    _CSL_intcGlobalNmiEnable ./ipc_interrupt.obj
    _CSL_intcHwControl ./ipc_interrupt.obj
    _CSL_intcInit ./ipc_interrupt.obj
    _CSL_intcOpen ./ipc_interrupt.obj
    _CSL_intcPlugEventHandler ./ipc_interrupt.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "IPC_example_on_6678.out" not
    built

    >> Compilation failure
    gmake: *** [IPC_example_on_6678.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    附工程设置图:

    麻烦帮我看看问题出在哪里 

    谢谢!

  • 没看到在--library选项里添加了ti.csl.ae66e CSL库。

  • 你好我这样设置了还是出现了以下的错误,是我哪里设置出现了什么问题吗?


    **** Build of configuration Debug for project IPC_example_on_6678 ****

    "D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../IPC_example_main.c'
    'Invoking: C6000 Compiler'
    "D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 -g --include_path="D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="D:/ti/pdk_c667x_2_0_16/packages/ti/csl/lib/c6678/c66/release" --include_path="D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl/lib" --include_path="D:/My_desktop/DSP/04_demo/03_Communication/DSP_6678/common" --include_path="C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_16/packages/packages/ti/csl" --include_path="C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_16/packages/packages" --include_path="D:/ti/pdk_C6678_1_1_2_6/packages" --display_error_number --diag_warning=225 --fp_not_associative --abi=eabi --preproc_with_compile --preproc_dependency="IPC_example_main.pp" "../IPC_example_main.c"
    'Finished building: ../IPC_example_main.c'
    ' '
    'Building file: ../ipc_interrupt.c'
    'Invoking: C6000 Compiler'
    "D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 -g --include_path="D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="D:/ti/pdk_c667x_2_0_16/packages/ti/csl/lib/c6678/c66/release" --include_path="D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl/lib" --include_path="D:/My_desktop/DSP/04_demo/03_Communication/DSP_6678/common" --include_path="C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_16/packages/packages/ti/csl" --include_path="C:/Program Files/Texas Instruments/pdk_C6678_1_0_0_16/packages/packages" --include_path="D:/ti/pdk_C6678_1_1_2_6/packages" --display_error_number --diag_warning=225 --fp_not_associative --abi=eabi --preproc_with_compile --preproc_dependency="ipc_interrupt.pp" "../ipc_interrupt.c"
    'Finished building: ../ipc_interrupt.c'
    ' '
    'Building target: IPC_example_on_6678.out'
    'Invoking: C6000 Linker'
    "D:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 -g --display_error_number --diag_warning=225 --fp_not_associative --abi=eabi -z -m"IPC_example_on_6678.map" --warn_sections -i"D:/ti/ctoolslib_1_0_0_2/packages" -i"D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl/lib" -i"D:/ti/pdk_c667x_2_0_16/packages/ti/csl/lib/c6678/c66/release" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ti/pdk_C6678_1_1_2_6/packages/ti/csl" -i"D:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --xml_link_info="IPC_example_on_6678_linkInfo.xml" --rom_model -o "IPC_example_on_6678.out" "./ipc_interrupt.obj" "./IPC_example_main.obj" "../6678.cmd" -l"D:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\lib\ti.csl.intc.ae66" -l"D:\ti\ccsv5\tools\compiler\c6000_7.4.4\lib\libc.a" -l"libc.a"
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    CSL_chipReadReg ./ipc_interrupt.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "IPC_example_on_6678.out" not
    built

    >> Compilation failure
    gmake: *** [IPC_example_on_6678.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    麻烦帮我看看是什么问题,非常感谢!

  • 需要在工程属性 linker中添加CSL lib:ti.csl.ae66e和ti.csl.intc.ae66e for big endian