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.

LAUNCHXL-CC3235SF: 在官方的例程上添加自定义文件出错

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3235SF, ADS1299

您好:

请问在官方的例程上添加直接的源文件和头文件,已添加了自己的文件路径,在编译的时候依旧出现了如下错误,请问如何解决呢?

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

我已经将自己的文件路径添加到了CCS工程中。望回复,谢谢。

  • 请问在官方的例程上添加直接的源文件和头文件,已添加了自己的文件路径

    能否给出添加的截图?另外请参考

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#adding-or-linking-source-files-to-project 

  • 请给出console内的全部信息,谢谢


  • **** Build of configuration MCU+Image for project empty_CC3235SF_LAUNCHXL_freertos_ccs ****

    "D:\\application\\CCS\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building file: "../empty.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="empty.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" "../empty.c"
    Finished building: "../empty.c"

    Building file: "syscfg/ti_drivers_config.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="syscfg/ti_drivers_config.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" --obj_directory="syscfg" "syscfg/ti_drivers_config.c"
    Finished building: "syscfg/ti_drivers_config.c"

    Building file: "../main_freertos.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="main_freertos.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" "../main_freertos.c"
    Finished building: "../main_freertos.c"

    Building file: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="myqueue.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" --obj_directory="ADS1299" "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c"
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 67: warning #225-D: function "mymalloc" declared implicitly
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 75: warning #515-D: a value of type "uint8_t" cannot be assigned to an entity of type "uint8_t **"
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 97: warning #225-D: function "myfree" declared implicitly
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 99: warning #225-D: function "myfree" declared implicitly
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 109: warning #179-D: variable "i" was declared but never referenced
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c", line 168: warning #179-D: variable "i" was declared but never referenced
    Finished building: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/myqueue.c"

    Building file: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="spi_1299.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" --obj_directory="SPI" "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c"
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c", line 90: warning #225-D: function "strncpy" declared implicitly
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c", line 92: warning #225-D: function "memset" declared implicitly
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c", line 107: warning #121-D: return value type does not match the function type
    Finished building: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI/spi_1299.c"

    Building file: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c"
    Invoking: Arm Compiler
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/SPI" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" --include_path="D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source/ti/posix/ccs" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/include" --include_path="D:/application/FREERTOS/FreeRTOSv202107.00/FreeRTOS/Source/portable/CCS/ARM_CM3" --include_path="D:/data/ads1299/freertos_builds_cc32xx_release_ccs" --include_path="D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="ads1299.d_raw" --include_path="D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" --obj_directory="ADS1299" "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c"
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c", line 268: warning #169-D: argument of type "volatile uint8_t *" is incompatible with parameter of type "uint8_t *"
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c", line 474: warning #179-D: variable "REG_Cache" was declared but never referenced
    "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c", line 532: warning #179-D: variable "res" was declared but never referenced
    Finished building: "D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/ADS1299/ads1299.c"

    Building target: "empty_CC3235SF_LAUNCHXL_freertos_ccs.out"
    Invoking: Arm Linker
    "D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"empty_CC3235SF_LAUNCHXL_freertos_ccs.map" -i"D:/application/cc32xx_sdk/simplelink_cc32xx_sdk_5_20_00_06/source" -i"D:/data/ads1299/empty_CC3235SF_LAUNCHXL_freertos_ccs/MCU+Image/syscfg" -i"D:/data/ads1299/freertos_builds_cc32xx_release_ccs/Debug" -i"D:/application/CCS/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/lib" --diag_suppress=10063 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="empty_CC3235SF_LAUNCHXL_freertos_ccs_linkInfo.xml" --rom_model -o "empty_CC3235SF_LAUNCHXL_freertos_ccs.out" "./ADS1299/ads1299.obj" "./empty.obj" "./syscfg/ti_drivers_config.obj" "./main_freertos.obj" "./ADS1299/myqueue.obj" "./SPI/spi_1299.obj" "../cc32xxsf_freertos.cmd" -l"ti/devices/cc32xx/driverlib/ccs/Release/driverlib.a" -lti_utils_build_linker.cmd.genlibs -lfreertos_builds_cc32xx_release_ccs.lib -llibc.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    SysTickDisable D:/data/ads1299/freertos_builds_cc32xx_release_ccs/Debug/freertos_builds_cc32xx_release_ccs.lib<PowerCC32XX_freertos.obj>
    SysTickEnable D:/data/ads1299/freertos_builds_cc32xx_release_ccs/Debug/freertos_builds_cc32xx_release_ccs.lib<PowerCC32XX_freertos.obj>

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

    >> Compilation failure
    makefile:168: recipe for target 'empty_CC3235SF_LAUNCHXL_freertos_ccs.out' failed
    gmake[1]: *** [empty_CC3235SF_LAUNCHXL_freertos_ccs.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    makefile:161: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

  • SysTickDisable 等变量应该是在 systick.h中的

    您是使用这些变量时是否包含了 systick.h?

  • 没有用到SysTickDisable啊

  • 但是从您的错误上看

    undefined first referenced
    symbol in file 

    没有定义的是SysTickDisable 以及 SysTickEnable 

    若是可以的话,请私信或上传一下工程

  • 好的,私信您了

  • 并没有收到您的私信

  • 工程私信发给您了

  • 请问您现在情况如何了?我这边无法复现您的错误

  • 串口打印报错误,Display_printf(display, 0, 0, "Init ads129x\r\n");这个要注释掉才可以,要怎么才能实现串口打印呢

  • 我看您发了新帖且已有相关同事进行了回复,请继续在下面的链接内讨论,谢谢

    https://e2echina.ti.com/support/wireless-connectivity/wifi/f/wi-fi-forum/208545/launchxl-cc3235sf 

  • 请问DEBUG的时候出现这样的问题是什么原因呢,应该如何解决呢?

  • 该问题和之前问题不相关,为了便于回复,请您重新描述问题后发新帖,谢谢