Due to the U.S. Thanksgiving holiday, please expect delayed responses during the week of 11/22.

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.

LInking Error @C2000 (LAUNCHPADXL-F28377S)

Other Parts Discussed in Thread: CONTROLSUITE

はじめまして。

高野と申します。

リンキングエラーの対処法を教えていただけないでしょうか。

当方組み込みの初心者です。

下記にエラーメッセージをおきますので、どのように設定すべきかご教示お願いしたく存じます。

環境はcontrolSUITE 3.4.4とCCS ver 6.2を使用しています。


**** Build of configuration Debug for project ctrl_dsp ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../init.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 --include_path="C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xS/v210/F2837xS_common/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="init.d" "../init.c"
'Finished building: ../init.c'
' '
'Building target: ctrl_dsp.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv4 --code_state=32 -g --diag_wrap=off --diag_warning=225 --display_error_number -z -m"ctrl_dsp.map" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="ctrl_dsp_linkInfo.xml" --rom_model -o "ctrl_dsp.out" "./ctrl_apd.obj" "./ctrl_encoder.obj" "./ctrl_init_err.obj" "./ctrl_spi.obj" "./ctrl_tdc.obj" "./init.obj" "./init_apd.obj" "./init_spi.obj" "./init_tdc.obj" "./main.obj" "./util.obj" -llibc.a
<Linking>
warning #10366-D: automatic library build: using library "C:\ti\ccsv6\tools\compiler\arm_15.12.3.LTS\lib\rtsv4_A_be_eabi.lib" for the first time, so it must be built. This may take a few minutes.
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".data" without a SECTIONS specification
warning #10247-D: creating output section ".bss" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10210-D: creating ".stack" section with default size of 0x800; use the -stack option to change the default size
warning #10229-D: output section ".data" refers to load symbol "EPwm1Regs" and hence cannot be compressed; compression "rle" is ignored

undefined first referenced
symbol in file
--------- ----------------
ClkCfgRegs ./init.obj
ConfigCpuTimer ./init.obj
CpuTimer0 ./init.obj
CpuTimer0Regs ./init.obj
EPwm1Regs ./ctrl_tdc.obj
EPwm2Regs ./ctrl_tdc.obj
F28x_usDelay ./ctrl_tdc.obj
GPIO_SetupPinMux ./init.obj
GPIO_SetupPinOptions ./init.obj
GPIO_WritePin ./ctrl_init_err.obj
GpioCtrlRegs ./init.obj
GpioDataRegs ./ctrl_init_err.obj
IER ./init.obj
IFR ./init.obj
InitCpuTimers ./init.obj
InitEPwmGpio ./init.obj
InitGpio ./init.obj
InitPieCtrl ./init.obj
InitPieVectTable ./init.obj
InitSysCtrl ./init.obj
IntDisable ./ctrl_spi.obj
IntEnable ./ctrl_apd.obj
PieCtrlRegs ./init.obj
PieVectTable ./init.obj
SFO ./init.obj
SpiaRegs ./util.obj
SpibRegs ./util.obj
g_TDC_EN_MEASURE ./ctrl_spi.obj
init_err ./init.obj
init_msr ./init.obj

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

>> Compilation failure
makefile:149: recipe for target 'ctrl_dsp.out' failed

**** Build Finished ****