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.

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

Other Parts Discussed in Thread: TM4C123GH6PM

你好。我用TM4C123G单片机,CCS5进行编译,出现错误如下:

**** Build of configuration Debug for project blinky ****

"D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../blinky.c'
'Invoking: ARM Compiler'
"D:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 -g --include_path="D:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="D:/ti/TivaWare_C_Series-2.0.1.11577" --include_path="D:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="D:/ti/TivaWare_C_Series-2.0.1.11577" --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="blinky.pp" "../blinky.c"
'Finished building: ../blinky.c'
' '
'Building target: blinky.out'
'Invoking: ARM Linker'
"D:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --ual -z --stack_size=256 -m"blinky_ccs.map" --heap_size=0 -i"D:/ti/ccsv5/tools/compiler/arm_5.1.1/lib" -i"D:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="blinky_linkInfo.xml" --rom_model -o "blinky.out" "./startup_ccs.obj" "./blinky.obj" "../blinky_ccs.cmd" -l"libc.a"
<Linking>

undefined first referenced
symbol in file
--------- ----------------
GPIOPinRead ./blinky.obj
GPIOPinTypeGPIOInput ./blinky.obj
GPIOPinTypeGPIOOutput ./blinky.obj
GPIOPinWrite ./blinky.obj
SysCtlClockGet ./blinky.obj
SysCtlClockSet ./blinky.obj
SysCtlDelay ./blinky.obj
SysCtlPeripheralEnable ./blinky.obj

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

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

**** Build Finished ****

头文件GPIO已经包含工程中,为什么会出现这种问题。谢谢

  • 工程设置的问题,缺少头文件或者源码(库)。

    能把工程设置截个图看看吗?

  • 截图如下:

  • 源码里面加入头文件了吗?

    工程设置里面,加入库文件了吗?

  • 问题出在linker部分。请在linker的file search path中加入

    ..\TivaWare\driverlib\ccs\Debug\driverlib.lib

  • 问题已解决,谢谢

  • 你好! 我自己建的工程也出现了 按照你的方法试了一下没管用,还有其他原因么? 同样的代码去年编译的时候没事 不知道是不是设置的事,试了一下几个月前导入的工程(SW自带的事例工程)编译了一下也出现了这种错误。倒是后来又导入了一遍 就没那种错误了。

  • 我的还是没解决,没有找到那个库


    #10010 errors encountered during linking; "Exercise4.out" not built        
    #10234-D  unresolved symbols remain        
    unresolved symbol nhetInit, first referenced in ./sys_main.obj   
  • 你好,你怎么解决的?谢谢

  • 在你安装的tiva ware目录下driverlib\ccs 里有driver.lib   另一个我是看qs-RGB里有我就加上了。

    我重建的工程在工程文件夹放了与uartprintf有关的文件    你可以导入一个tiva ware 带的工程qs-rgb倒进去然后 把代码替换一下

  • 我在使用TSC来计算程序执行时间也遇到了类似问题,报错界面如下:

    请问这个unresolved symbol应该怎么解决?c6x.h和csl_tsc.h都已经添加了啊

  • 我也是一样的错误,错误原因是:DSP2833x_GlobalVariableDefs.c这个文件没有添加到工程中,这个文件的路径在:D:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_headers\source下

  • 找到提示你没有定义的定义,然后定位在.c或者.h文件中,看看是否需要宏定义什么呢,而你没有宏定义

  • 查看blinky下的程序中对应的这些

    GPIOPinRead .
    GPIOPinTypeGPIOInput .
    GPIOPinTypeGPIOOutput .
    GPIOPinWrite .
    SysCtlClockGet .
    SysCtlClockSet .
    SysCtlDelay .
    SysCtlPeripheralEnable .

    子函数是否定义,或者定义的是否能用

  • 请问你是怎么解决的?我也遇到同样的问题了,能说下吗?谢谢啦

  • 换CCS6.0,然后参考我发表的帖子新建一个CCS的工程,或者参考官方视频的步骤。

  • 您好,我在调试C6748的定时器中断时也出现了同样的问题,当不含中断矢量表时,build没问题,包含中断矢量表时报以下错误:

    error #10234-D: unresolved symbols remain
    warning #10281-D: Section ".neardata" requires a STATIC_BASE relative relocation, but is located at 0xc00142d0, which is probably out of range of the STATIC_BASE. STATIC_BASE is located at 0xc00071e8. Might be required to correct   placement of ".neardata" so it lies within 0x8000 of the STATIC_BASE.
    error #10010: errors encountered during linking; "Matrix.out" not built

    以下是我的中断矢量表文件:

       .ref     _c_int00
       .ref     _xint0_isr   ; timer 1 interrupt handler
       .sect    ".vectors"
    RESET_RST: mvkl .S2 _c_int00, B0
           mvkh .S2 _c_int00, B0
           B    .S2 B0
           NOP
           NOP
           NOP
           NOP
           NOP
    NMI_RST: .loop 8
           NOP
          .endloop
    RESV1: .loop 8
           NOP
           .endloop
    RESV2: .loop 8
           NOP
           .endloop
    INT4: .loop 8
          NOP
          .endloop
    INT5: .loop 8
          NOP
          .endloop
    INT6: .loop 8
          NOP
          .endloop
    INT7: .loop 8
          NOP
          .endloop
    INT8: .loop 8
          NOP
          .endloop
    INT9: .loop 8
          NOP
          .endloop
    INT10: B _xint0_isr
           .loop 7
           NOP
           .endloop
    INT11: .loop 8
          NOP
          .endloop
    INT12: .loop 8
          NOP
          .endloop
    INT13: .loop 8
          NOP
          .endloop
    INT14: .loop 8
          NOP
          .endloop
    INT15: .loop 8
          NOP
          .endloop

    可以帮忙指正下问题出在哪吗?谢谢!

    BRs,

    KT

  • 看提示,大概感觉是数据类型的定义问题。最好还是参考官方的例程,在原来的程序上面改。单看这点,找不到你的错误的。

  • 您好,谢谢,我用的C6748的开发板,想实现一个简单的定时器中断操作例程,可以麻烦给我一个吗?我没找到6748的,谢谢!

  • http://dl.21ic.com/download/code/program_6748-rar-ic-101522.html

    去这里下载,C6748的定时器中断例程。

  • http://bbs.elecfans.com/jishu_520939_1_1.html

    还可以看看这个例程。

  • 好的,非常感谢!

  • 不客气,其实这个问题去DSP版块提问比较好。不过这个芯片出来很早了,网上的资料也不少,还是比较容易可以找到不少例程的。

  • 你好,你的问题是怎么解决的,我这里是官网的例程也是这个错误

x 出现错误。请重试或与管理员联系。