Hi,
I have problem with linker. i get the Error message : symbol "_EmuBMode" redefined: first defined in "./F2802x_GlobalVariableDefs.obj"; redefined in
"./Example_2802xLEDBlink.obj"
The CCS build Console looks like this:
**** Build of configuration Debug for project Example_2802xLEDBlink ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../Example_2802xLEDBlink.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="Example_2802xLEDBlink.pp" "../Example_2802xLEDBlink.c"
"../Example_2802xLEDBlink.c", line 213: remark: declaration may not appear
after executable statement in block
Uint16 Status;
^
"../Example_2802xLEDBlink.c", line 213: warning: variable "Status" was
declared but never referenced
Uint16 Status;
^
"../Example_2802xLEDBlink.c", line 302: warning: variable "Status" was set but
never used
Uint16 Status;
^
"../Example_2802xLEDBlink.c", line 305: warning: variable "Version" was
declared but never referenced
float32 Version; // Version of the API in floating point
^
'Finished building: ../Example_2802xLEDBlink.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/source/F2802x_GlobalVariableDefs.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="F2802x_GlobalVariableDefs.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/source/F2802x_GlobalVariableDefs.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/source/F2802x_GlobalVariableDefs.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_codestartbranch.asm'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_codestartbranch.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_codestartbranch.asm"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_codestartbranch.asm'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_cputimers.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_cputimers.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_cputimers.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_cputimers.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_defaultisr.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_defaultisr.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_defaultisr.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_defaultisr.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_piectrl.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_piectrl.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_piectrl.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_piectrl.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_pievect.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_pievect.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_pievect.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_pievect.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_sysctrl.c'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_sysctrl.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_sysctrl.c"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_sysctrl.c'
' '
'Building file: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_usdelay.asm'
'Invoking: C2000 Compiler'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --include_path="C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath" --include_path="C:/ti/xdais_7_24_00_04/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/include" --include_path="C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/include" --include_path="C:/Users/VW7" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="f2802x_usdelay.pp" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_usdelay.asm"
'Finished building: C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_common/source/f2802x_usdelay.asm'
' '
'Building target: Example_2802xLEDBlink.out'
'Invoking: C2000 Linker'
"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=232 --diag_suppress=10063 --issue_remarks --output_all_syms --cdebug_asm_data -z -m"Example_2802xLEDBlink.map" --stack_size=0x200 --warn_sections -i"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/lib" -i"C:/Program Files/Texas Instruments/ti-cgt-c2000_6.4.2/include" -i"C:/Users/VW7/workspace_v5_5/Example_2802xLEDBlink" -i"C:/ti/controlSUITE/libs/math/IQmath/v15c/lib" --reread_libs --verbose_diagnostics --issue_remarks --xml_link_info="Example_2802xLEDBlink_linkInfo.xml" --entry_point=code_start --rom_model -o "Example_2802xLEDBlink.out" -l"rts2800_ml.lib" -l"C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201\lib\2802x_FlashAPI_BootROMSymbols_v2.01.lib" "./f2802x_usdelay.obj" "./f2802x_sysctrl.obj" "./f2802x_pievect.obj" "./f2802x_piectrl.obj" "./f2802x_defaultisr.obj" "./f2802x_cputimers.obj" "./f2802x_codestartbranch.obj" "./F2802x_GlobalVariableDefs.obj" "./Example_2802xLEDBlink.obj" "../28027_RAM_lnk.cmd" "C:/ti/controlSUITE/device_support/f2802x/v230/f2802x_headers/cmd/F2802x_Headers_nonBIOS.cmd"
warning: build attribute vendor section TI missing in
"C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201\lib\2802x_FlashAPI_B
ootROMSymbols_v2.01.lib<__Release_TMS320x2802x_boot_rom_out__Flash2802x_APIV
ersionHex_tmp.obj>": compatibility cannot be determined
warning: build attribute vendor section TI missing in
"C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201\lib\2802x_FlashAPI_B
ootROMSymbols_v2.01.lib<__Release_TMS320x2802x_boot_rom_out__Flash2802x_Eras
e_tmp.obj>": compatibility cannot be determined
warning: build attribute vendor section TI missing in
"C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201\lib\2802x_FlashAPI_B
ootROMSymbols_v2.01.lib<__Release_TMS320x2802x_boot_rom_out__Flash2802x_Togg
leTest_tmp.obj>": compatibility cannot be determined
warning: build attribute vendor section TI missing in
"C:\ti\controlSUITE\libs\utilities\flash_api\2802x\v201\lib\2802x_FlashAPI_B
ootROMSymbols_v2.01.lib<__Release_TMS320x2802x_boot_rom_out__Flash2802x_Veri
fy_tmp.obj>": compatibility cannot be determined
error: symbol "_EmuBMode" redefined: first defined in
"./F2802x_GlobalVariableDefs.obj"; redefined in
"./Example_2802xLEDBlink.obj"
error: symbol "_EmuKey" redefined: first defined in
"./F2802x_GlobalVariableDefs.obj"; redefined in
"./Example_2802xLEDBlink.obj"
error: errors encountered during linking; "Example_2802xLEDBlink.out" not
built
>> Compilation failure
gmake: *** [Example_2802xLEDBlink.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
I assume that some included libraries have defined this symbols. Or not? How can i solve this error?
Thank You!
Best regards,
Tomas