我下载e2echina.ti.com/…/47664里的keystone 1 csl 例程,然后修改include属性,build工程,报如下错误:
**** Build of configuration Debug for project UART ****
"D:\\ti5\\ccsv5\\utils\\bin\\gmake" -j4 -k all'Building file: ../src/UART_Interrupt.c'
'Building file: ../src/UART_main.c'
'Building file: ../src/UART_vectors.asm'
'Building file: ../common/CPU_LD_ST_Test.asm'
'Invoking: C6000 Compiler'
'Invoking: C6000 Compiler'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="src/UART_Interrupt.pp" –obj_directory="src" "../src/UART_Interrupt.c"
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="src/UART_main.pp" –obj_directory="src" "../src/UART_main.c"
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="src/UART_vectors.pp" –obj_directory="src" "../src/UART_vectors.asm"
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/CPU_LD_ST_Test.pp" –obj_directory="common" "../common/CPU_LD_ST_Test.asm"
'Finished building: ../src/UART_vectors.asm'
'Finished building: ../common/CPU_LD_ST_Test.asm'
' '
' '
'Building file: ../common/CPU_access_test.c'
'Building file: ../common/INT_vectors.asm'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/CPU_access_test.pp" –obj_directory="common" "../common/CPU_access_test.c"
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/INT_vectors.pp" –obj_directory="common" "../common/INT_vectors.asm"
'Finished building: ../src/UART_Interrupt.c'
' '
'Finished building: ../src/UART_main.c'
'Finished building: ../common/INT_vectors.asm'
'Building file: ../common/KeyStone_DDR_Init.c'
' '
' '
'Invoking: C6000 Compiler'
'Building file: ../common/KeyStone_EMIF16_Init.c'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_DDR_Init.pp" –obj_directory="common" "../common/KeyStone_DDR_Init.c"
'Building file: ../common/KeyStone_GE_Init_drv.c'
'Invoking: C6000 Compiler'
'Finished building: ../common/CPU_access_test.c'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_EMIF16_Init.pp" –obj_directory="common" "../common/KeyStone_EMIF16_Init.c"
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_GE_Init_drv.pp" –obj_directory="common" "../common/KeyStone_GE_Init_drv.c"
' '
'Building file: ../common/KeyStone_HyperLink_Init.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_HyperLink_Init.pp" –obj_directory="common" "../common/KeyStone_HyperLink_Init.c"
'Finished building: ../common/KeyStone_EMIF16_Init.c'
' '
'Building file: ../common/KeyStone_Navigator_init_drv.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_Navigator_init_drv.pp" –obj_directory="common" "../common/KeyStone_Navigator_init_drv.c"
'Finished building: ../common/KeyStone_HyperLink_Init.c'
' '
'Finished building: ../common/KeyStone_DDR_Init.c'
'Building file: ../common/KeyStone_PCIE_Init_drv.c'
' '
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_PCIE_Init_drv.pp" –obj_directory="common" "../common/KeyStone_PCIE_Init_drv.c"
'Building file: ../common/KeyStone_SPI_Init_drv.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_SPI_Init_drv.pp" –obj_directory="common" "../common/KeyStone_SPI_Init_drv.c"
'Finished building: ../common/KeyStone_Navigator_init_drv.c'
' '
'Building file: ../common/KeyStone_SRIO_Init_drv.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_SRIO_Init_drv.pp" –obj_directory="common" "../common/KeyStone_SRIO_Init_drv.c"
'Finished building: ../common/KeyStone_SPI_Init_drv.c'
' '
'Building file: ../common/KeyStone_UART_Init_drv.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_UART_Init_drv.pp" –obj_directory="common" "../common/KeyStone_UART_Init_drv.c"
'Finished building: ../common/KeyStone_UART_Init_drv.c'
' '
'Building file: ../common/KeyStone_common.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/KeyStone_common.pp" –obj_directory="common" "../common/KeyStone_common.c"
'Finished building: ../common/KeyStone_PCIE_Init_drv.c'
' '
'Building file: ../common/Keystone_I2C_init_drv.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/Keystone_I2C_init_drv.pp" –obj_directory="common" "../common/Keystone_I2C_init_drv.c"
'Finished building: ../common/KeyStone_GE_Init_drv.c'
' '
'Building file: ../common/Keystone_Serdes_init.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/Keystone_Serdes_init.pp" –obj_directory="common" "../common/Keystone_Serdes_init.c"
'Finished building: ../common/Keystone_I2C_init_drv.c'
' '
'Building file: ../common/common_test.c'
'Invoking: C6000 Compiler'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages/ti/csl" –include_path="D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="D:/ti5/pdk_C6678_1_1_2_6/packages" –include_path="E:/dsp5_proj/UART/common" –display_error_number –diag_warning=225 –preproc_with_compile –preproc_dependency="common/common_test.pp" –obj_directory="common" "../common/common_test.c"
'Finished building: ../common/Keystone_Serdes_init.c'
' '
'Finished building: ../common/KeyStone_SRIO_Init_drv.c'
' '
'Finished building: ../common/common_test.c'
' '
'Finished building: ../common/KeyStone_common.c'
' '
'Building target: UART.out'
'Invoking: C6000 Linker'
"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 –abi=eabi -O3 –symdebug:none –display_error_number –diag_warning=225 -z -m"UART.map" -i"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"D:/ti5/ccsv5/tools/compiler/c6000_7.4.4/include" –reread_libs –warn_sections –display_error_number –xml_link_info="UART_linkInfo.xml" –rom_model -o "UART.out" "./common/common_test.obj" "./common/Keystone_Serdes_init.obj" "./common/Keystone_I2C_init_drv.obj" "./common/KeyStone_common.obj" "./common/KeyStone_UART_Init_drv.obj" "./common/KeyStone_SRIO_Init_drv.obj" "./common/KeyStone_SPI_Init_drv.obj" "./common/KeyStone_PCIE_Init_drv.obj" "./common/KeyStone_Navigator_init_drv.obj" "./common/KeyStone_HyperLink_Init.obj" "./common/KeyStone_GE_Init_drv.obj" "./common/KeyStone_EMIF16_Init.obj" "./common/KeyStone_DDR_Init.obj" "./common/INT_vectors.obj" "./common/CPU_access_test.obj" "./common/CPU_LD_ST_Test.obj" "./src/UART_vectors.obj" "./src/UART_main.obj" "./src/UART_Interrupt.obj" "../KeyStone.cmd" -l"libc.a"<Linking>
error #10056: symbol "vectors" redefined: first defined in
"./common/INT_vectors.obj"; redefined in "./src/UART_vectors.obj"
"../KeyStone.cmd", line 24: error #10099-D: program will not fit into available
memory. placement with alignment fails for section "vecs" size 0x400 .
Available memory ranges:
VECTORS size: 0x200 unused: 0x200 max hole: 0x200error #10010: errors encountered during linking; "UART.out" not built
>> Compilation failure
gmake: *** [UART.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
该如何修改?
Shine:
链接打不开。
user1364381:
回复 Shine:
e2echina.ti.com/…/47664
user1364381:
回复 Shine:
我把common文件夹直接引用了,两个重了,我改过了就好了。