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.
你好。我用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
我的还是没解决,没有找到那个库
#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倒进去然后 把代码替换一下
我也是一样的错误,错误原因是:DSP2833x_GlobalVariableDefs.c这个文件没有添加到工程中,这个文件的路径在:D:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_headers\source下
查看blinky下的程序中对应的这些
GPIOPinRead .
GPIOPinTypeGPIOInput .
GPIOPinTypeGPIOOutput .
GPIOPinWrite .
SysCtlClockGet .
SysCtlClockSet .
SysCtlDelay .
SysCtlPeripheralEnable .
子函数是否定义,或者定义的是否能用
您好,我在调试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
http://dl.21ic.com/download/code/program_6748-rar-ic-101522.html
去这里下载,C6748的定时器中断例程。