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.

RTOS/TMS320F28335: Undefined symbol errors when I try to compile DSP/BIOS example project as C++.

Guru 20045 points
Part Number: TMS320F28335


Tool/software: TI-RTOS

Hello,

I get an undefined symbol errors when I try to compile the attached example project as C++.

Is there anything special I should do to make it work with C++?

Stephen

F28335_example_BIOS5_flash.zip

  • Steve,

    Can you please post the build output?

    Todd
  • Also what CCS and Windows versions are you using?

  • **** Build of configuration Debug for project F28335_example_BIOS5_flash ****
    
    "C:\\ti\\ccs6_2_0\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../F28335_example_BIOS5_flash.tcf'
    'Invoking: TConf'
    "C:/ti/bios_5_42_00_07/xdctools/tconf" -b -Dconfig.importPath="C:/ti/bios_5_42_00_07/packages;" "../F28335_example_BIOS5_flash.tcf"
    'Finished building: ../F28335_example_BIOS5_flash.tcf'
    ' '
    'Building file: F28335_example_BIOS5_flashcfg.s??'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="F28335_example_BIOS5_flashcfg.d"  "F28335_example_BIOS5_flashcfg.s??"
    'Finished building: F28335_example_BIOS5_flashcfg.s??'
    ' '
    'Building file: F28335_example_BIOS5_flashcfg_c.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="F28335_example_BIOS5_flashcfg_c.d"  "F28335_example_BIOS5_flashcfg_c.c"
    'Finished building: F28335_example_BIOS5_flashcfg_c.c'
    ' '
    'Building file: ../src/Adc.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Adc.d" --obj_directory="src"  "../src/Adc.c"
    'Finished building: ../src/Adc.c'
    ' '
    'Building file: ../src/CodeStartBranch.asm'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/CodeStartBranch.d" --obj_directory="src"  "../src/CodeStartBranch.asm"
    'Finished building: ../src/CodeStartBranch.asm'
    ' '
    'Building file: ../src/DSP2833x_GlobalVariableDefs.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/DSP2833x_GlobalVariableDefs.d" --obj_directory="src"  "../src/DSP2833x_GlobalVariableDefs.c"
    'Finished building: ../src/DSP2833x_GlobalVariableDefs.c'
    ' '
    'Building file: ../src/DefaultIsr_BIOS.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/DefaultIsr_BIOS.d" --obj_directory="src"  "../src/DefaultIsr_BIOS.c"
    'Finished building: ../src/DefaultIsr_BIOS.c'
    ' '
    'Building file: ../src/DelayUs.asm'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/DelayUs.d" --obj_directory="src"  "../src/DelayUs.asm"
    'Finished building: ../src/DelayUs.asm'
    ' '
    'Building file: ../src/ECap.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/ECap.d" --obj_directory="src"  "../src/ECap.c"
    'Finished building: ../src/ECap.c'
    ' '
    'Building file: ../src/EPwm.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/EPwm.d" --obj_directory="src"  "../src/EPwm.c"
    'Finished building: ../src/EPwm.c'
    ' '
    'Building file: ../src/Flash.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Flash.d" --obj_directory="src"  "../src/Flash.c"
    'Finished building: ../src/Flash.c'
    ' '
    'Building file: ../src/Gpio.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Gpio.d" --obj_directory="src"  "../src/Gpio.c"
    'Finished building: ../src/Gpio.c'
    ' '
    'Building file: ../src/Main_BIOS.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Main_BIOS.d" --obj_directory="src"  "../src/Main_BIOS.c"
    'Finished building: ../src/Main_BIOS.c'
    ' '
    'Building file: ../src/Passwords.asm'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Passwords.d" --obj_directory="src"  "../src/Passwords.asm"
    'Finished building: ../src/Passwords.asm'
    ' '
    'Building file: ../src/PieCtrl_BIOS.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/PieCtrl_BIOS.d" --obj_directory="src"  "../src/PieCtrl_BIOS.c"
    'Finished building: ../src/PieCtrl_BIOS.c'
    ' '
    'Building file: ../src/SetDBGIER.asm'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/SetDBGIER.d" --obj_directory="src"  "../src/SetDBGIER.asm"
    'Finished building: ../src/SetDBGIER.asm'
    ' '
    'Building file: ../src/SysCtrl.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/SysCtrl.d" --obj_directory="src"  "../src/SysCtrl.c"
    'Finished building: ../src/SysCtrl.c'
    ' '
    'Building file: ../src/Watchdog.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Watchdog.d" --obj_directory="src"  "../src/Watchdog.c"
    'Finished building: ../src/Watchdog.c'
    ' '
    'Building file: ../src/Xintf.c'
    'Invoking: C2000 Compiler'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --include_path="C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/include" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/DSP2833x_headers/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_00_07/packages/ti/rtdx/include/c2000" --include_path="C:/Users/shallacy/Downloads/F28335_examples_CCSv5/F28335_example_BIOS5_flash/Debug" --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms --preproc_with_compile --preproc_dependency="src/Xintf.d" --obj_directory="src"  "../src/Xintf.c"
    'Finished building: ../src/Xintf.c'
    ' '
    'Building target: F28335_example_BIOS5_flash.out'
    'Invoking: C2000 Linker'
    "C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --cpp_default --define=EXAMPLE_BIOS5 --define=EXAMPLE_FLASH --quiet --diag_warning=225 --display_error_number --diag_suppress=303 -k --c_src_interlist --asm_listing --output_all_syms -z -m"F28335_example_BIOS5_flash.map" --warn_sections -i"C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/lib" -i"C:/projects/UPS_SVN/Compilers/ti-cgt-C2000_6.2.11/include" -i"C:/ti/bios_5_42_00_07/packages/ti/rtdx/lib/c2000" -i"C:/ti/bios_5_42_00_07/packages/ti/bios/lib" --reread_libs --xml_link_info="F28335_example_BIOS5_flash_linkInfo.xml" --rom_model -o "F28335_example_BIOS5_flash.out" "./F28335_example_BIOS5_flashcfg.obj" "./F28335_example_BIOS5_flashcfg_c.obj" "./src/Adc.obj" "./src/CodeStartBranch.obj" "./src/DSP2833x_GlobalVariableDefs.obj" "./src/DefaultIsr_BIOS.obj" "./src/DelayUs.obj" "./src/ECap.obj" "./src/EPwm.obj" "./src/Flash.obj" "./src/Gpio.obj" "./src/Main_BIOS.obj" "./src/Passwords.obj" "./src/PieCtrl_BIOS.obj" "./src/SetDBGIER.obj" "./src/SysCtrl.obj" "./src/Watchdog.obj" "./src/Xintf.obj" "../DSP2833x_headers/cmd/DSP2833x_Headers_BIOS.cmd" "../cmd/F28335_BIOS5_flash.cmd" -l"./F28335_example_BIOS5_flashcfg.cmd" -lrts2800_fpu32.lib 
    
    >> Compilation failure
    makefile:164: recipe for target 'F28335_example_BIOS5_flash.out' failed
    
     undefined               first referenced                   
      symbol                     in file                        
     ---------               ----------------                   
     _ADCINT_ISR             ./F28335_example_BIOS5_flashcfg.obj
     _AdcSwi                 ./F28335_example_BIOS5_flashcfg.obj
     DelayUs(unsigned int)   ./src/Adc.obj                      
     _ECAP1_INT_ISR          ./F28335_example_BIOS5_flashcfg.obj
     _LedBlink               ./F28335_example_BIOS5_flashcfg.obj
     SetDBGIER(unsigned int) ./src/Main_BIOS.obj                
     _UserInit                                                  
    
    error #10234-D: unresolved symbols remain
    "./F28335_example_BIOS5_flashcfg.cmd", line 11: error #10104: undefined symbol
       "_UserInit" used in expression
    error #10010: errors encountered during linking;
       "F28335_example_BIOS5_flash.out" not built
    gmake: *** [F28335_example_BIOS5_flash.out] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • I am using CCSv6.2.0.00050 and windows 7 (64-bit).
  • I am also using xdctools_3_32_01_22_core and bios_5_42_02_10
  • Have you been able to find out anything?

    I wouldn't think there would be any name mangling issues since all the files are compiled as c++ files.

    Stephen
  • Stephen,

    Todd has asked me to look at this, as he's having trouble getting the good ol' DSP/BIOS to work. I will let you know if I find anything out or have any further questions.

    Regards,

    - Rob
  • stevenh said:
    I wouldn't think there would be any name mangling issues since all the files are compiled as c++ files.

    I'm not a C++ person, but it seems clear that name mangling is not happening when compiled as C++.

    To accommodate this lack of name mangling (i.e., leading underscore), you need your asm file labels to not have the "_".  I would suggest double-labeling each global in your asm files - one label with leading "_" and one without so that the asm file can be used for both C and C++ references.

    You also need to prevent tconf from applying the leading "_" for prog.extern(label) statements in your .tcf file.  You can accomplish this by providing a 2nd parameter to prog.extern of "C++".  For example, change
        prog.extern("UserInit");
    to
        prog.extern("UserInit", "C++");

    Regards,

    - Rob

  • That didn't work for me. The linker still shows UserInit as an undefined symbol.

    Is there any documentation that describe commands like prog.extern()?

    Stephen
  • Section 5.5 of the Tconf user manual, page 5-17 documents the Program.extern method. Here's the link: www.ti.com/.../spru007i.pdf

    Did the other symbols resolve?

    Maybe "asm" would work better?

    Regards,

    - Rob