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.

CCS/TMS320C6748: Unresolved Symbols when creating a new project and copying the SDK example code.

Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS, OMAPL138, MATHLIB

Tool/software: Code Composer Studio

I Have installed the SDK examples in my code composer workspace and I am trying to create a new project and run that example code in my new CCS Project.

I have correctly added the paths and include options, but still, after resolving tons of error I am stuck on this one.

Please have a look and try to help me with this.

**** Build of configuration Debug for project gpio_led ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

making ../src/sysbios/sysbios.ae674 ...
gmake[1]: Nothing to be done for 'all'.
'Building file: "../main.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/src" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/uart" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/csl" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/board/src/lcdkOMAPL138/include" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/src/v0" --include_path="E:/AWI/Workspace/gpio_led" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="E:/AWI/Workspace/gpio_led" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=SOC_OMAPL138 --define=lcdkOMAPL138 --define=USE_BIOS --define=LCDK_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
'Finished building: "../main.c"'

making ../src/sysbios/sysbios.ae674 ...
gmake[2]: Nothing to be done for 'all'.
'Building target: "gpio_led.out"'
'Invoking: C6000 Linker'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --define=SOC_OMAPL138 --define=lcdkOMAPL138 --define=USE_BIOS --define=LCDK_OMAPL138 --define=c6748 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"gpio_led.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="gpio_led_linkInfo.xml" --rom_model -o "gpio_led.out" "./GPIO_board.obj" "./GPIO_drv.obj" "./GPIO_log.obj" "./GPIO_soc.obj" "./GPIO_v0.obj" "./GPIO_v1.obj" "./UART_ascii_utils.obj" "./UART_drv.obj" "./board.obj" "./lcdkOMAPL138.obj" "./lcdkOMAPL138_clock.obj" "./lcdkOMAPL138_ddr.obj" "./lcdkOMAPL138_lld_init.obj" "./lcdkOMAPL138_pinmux.obj" "./lcdkOMAPL138_pll.obj" "./main.obj" "./package_ti.drv.gpio.obj" "./package_ti.drv.uart.obj" -l"configPkg/linker.cmd" -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
UART_stdioInit ./GPIO_log.obj

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

>> Compilation failure
makefile:157: recipe for target 'gpio_led.out' failed
gmake[1]: *** [gpio_led.out] Error 1
makefile:153: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

  • The team is notified. They will post their feedback directly here.

    BR
    Tsvetolin Shulev
  • gpio_led.zipThe problem is different now...

    **** Build of configuration Debug for project gpio_led ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

           1 file(s) copied.

    making ../src/sysbios/sysbios.ae674 ...

    'Building file: "../app.cfg"'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_50_05_12_core/xs" --xdcpath="C:/ti/dsplib_c674x_3_4_0_0/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_47_01_00/packages;C:/ti/mathlib_c674x_3_1_1_0/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/bios_6_52_00_12/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/pdk_omapl138_1_0_4/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evm6748 -r release -c "C:/ti/ti-cgt-c6000_8.2.2" --compileOptions "-g --optimize_with_debug" "../app.cfg"

    gmake[1]: Nothing to be done for 'all'.

    configuring app.xe674 from package/cfg/app_pe674.cfg ...

    generating custom ti.sysbios library makefile ...

    Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674

    Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674

    Linking with library ti.drv.gpio:./lib/omapl138/c674/release/ti.drv.gpio.ae674

    Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674

    Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674

    Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674

    Starting build of library sources ...

    making E:/AWI/Workspace/gpio_led/src/sysbios/sysbios.ae674 ...

    gmake[1]: Entering directory `E:/AWI/Workspace/gpio_led/src/sysbios'

    gmake[1]: Nothing to be done for `all'.

    gmake[1]: Leaving directory `E:/AWI/Workspace/gpio_led/src/sysbios'

    Build of libraries done.

    cle674 package/cfg/app_pe674.c ...

    'Finished building: "../app.cfg"'

    making ../src/sysbios/sysbios.ae674 ...

    gmake[2]: Nothing to be done for 'all'.

    'Building target: "gpio_led.out"'

    'Invoking: C6000 Linker'

    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --define=SOC_OMAPL138 --define=lcdkOMAPL138 --define=USE_BIOS --define=LCDK_OMAPL138 --define=c6748 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number -z -m"gpio_led.map" -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="gpio_led_linkInfo.xml" --rom_model -o "gpio_led.out" "./GPIO_board.obj" "./main.obj" "../src/sysbios/BIOS.obj" "../src/sysbios/c62_TaskSupport_asm.obj" "../src/sysbios/c64p_Exception_asm.obj" "../src/sysbios/c64p_Hwi_asm.obj" "../src/sysbios/c64p_Hwi_asm_switch.obj" "../src/sysbios/c64p_Hwi_disp_always.obj" "../src/sysbios/ti_tls_get_tp.obj" "../src/sysbios/timer64_Timer_asm.obj" -l"configPkg/linker.cmd" -llibc.a

    <Linking>

    "configPkg/linker.cmd", line 169: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0

    "configPkg/linker.cmd", line 169: error #10265: no valid memory range(null) available for placement of ".text:_c_int00"

    "configPkg/linker.cmd", line 169: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".text:_c_int00" size 0xa0

    "configPkg/linker.cmd", line 168: warning #10097: memory range not found: APP_CACHED_DATA_BLK2_MEM on page 0

    "configPkg/linker.cmd", line 168: error #10099-D: program will not fit into available memory.  run placement with alignment fails for section ".fardata:benchmarking" size 0x0

    error #10010: errors encountered during linking; "gpio_led.out" not built

    >> Compilation failure

    makefile:151: recipe for target 'gpio_led.out' failed

    gmake[1]: *** [gpio_led.out] Error 1

    makefile:147: recipe for target 'all' failed

    gmake: *** [all] Error 2

    **** Build Finished ****

  • Hello Prashant,

    We have a GPIO led example provided in the SDK that can be built using the provided pdkProjectCreate script. Please refer to the following wiki for instructions on building it. Please make sure you run the pdksetupenv script before building.

    processors.wiki.ti.com/.../Rebuilding_The_PDK

    Once it's built you can import the project into CCS from the folder C:\ti\pdk_omapl138_1_0_4\packages\MyExampleProjects.
  • I just did that but i was trying to copy that code in a New CCS project created by me and when i build it , this error occurs.

    My another question was :
    I am trying to load the GPIO led example provided in the SDK to my TMSC320C6748LCDK but it shows this error:

    C674X_0: Output: Target Connected.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Cleared.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: Memory Map Setup Complete.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: PSC Enable Complete.
    C674X_0: Output: ---------------------------------------------
    C674X_0: Output: PLL0 init done for Core:300MHz, EMIFA:25MHz
    C674X_0: Output: DDR initialization is in progress....
    C674X_0: Output: PLL1 init done for DDR:150MHz
    C674X_0: Output: Using DDR2 settings
    C674X_0: Output: DDR2 init for 150 MHz is done
    C674X_0: Output: ---------------------------------------------
    C674X_0: Trouble Reading Register SP: (Error -1137 @ 0x2F) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 7.0.100.0)


    I treid selecting both the target configuration: TMSC320C6748LCDK and TMSC320C6748 but still getting the error.(with TI XDS110 debug probe)
    What should be DIP switch setting?.. May be this is beacause of that.
  • The DIP switch settings should be either 1:4 OFF ON OFF ON for UART mode or all OFF for emulation mode, when connecting using CCS.
  • I am getting this error when i am trying to gmake all after running setupenv.bat.

    I think the address is wrong for the cgt-arm_16.9.3_LTS folder(it should start with C:/ti instead of C:)

    please help me to solve it.

  • I was able to reproduce this error. I will let you know once I have a solution.

    In the meantime, if you are just trying to build examples, you should be able to by running setupenv.bat and pdkProjectCreate.bat. You do not have to rebuild the entire PDK.
  •  I have loaded the example as you said but i am having this error when i try to build them.

    I didnot modify anything in the program(only the target config file as shown)

    platform: omapl138

    Error:

    **** Build of configuration Debug for project GPIO_LedBlink_lcdkOMAPL138_c674xTestProject ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

    'Building file: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/gpio_test.cfg"'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_omapl138_1_0_4/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_47_01_00/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C674 -p ti.platforms.evmOMAPL138 -r debug -b "C:/ti/pdk_omapl138_1_0_4/packages/ti/build/omapl138/config_omapl138_c674x.bld" -c "C:/ti/ti-cgt-c6000_8.2.2" -DBOARD=lcdkOMAPL138 "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/gpio_test.cfg"

    making package.mak (because of package.bld) ...

    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

    configuring gpio_test.xe674 from package/cfg/gpio_test_pe674.cfg ...

    generating custom ti.sysbios library makefile ...

    Linking with library ti.drv.i2c:./lib/omapl138/c674/release/ti.drv.i2c.ae674

    Linking with library ti.drv.uart:./lib/omapl138/c674/release/ti.drv.uart.ae674

    Linking with library ti.drv.gpio:./lib/omapl138/c674/release/ti.drv.gpio.ae674

    Linking with library ti.board:./lib/lcdkOMAPL138/c674/release/ti.board.ae674

    Linking with library ti.csl:./lib/omapl138/c674/release/ti.csl.ae674

    Linking with library ti.osal:./lib/tirtos/omapl138/c674/release/ti.osal.ae674

    Starting build of library sources ...

    making C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/src/sysbios/sysbios.ae674 ...

    gmake[1]: Entering directory `C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/src/sysbios'

    cle674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    asme674 C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...

    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a

      subsequent release. The behavior is enabled by default.

    are674 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj ...

    gmake[1]: Leaving directory `C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/src/sysbios'

    Build of libraries done.

    cle674 package/cfg/gpio_test_pe674.c ...

    'Finished building: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/c674/bios/gpio_test.cfg"'

    'Building file: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/GPIO_board.c"'

    'Invoking: C6000 Compiler'

    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/Users/agraw/workspace_v7/GPIO_LedBlink_lcdkOMAPL138_c674xTestProject" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="/packages" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=SOC_OMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=lcdkOMAPL138 --define=c6748 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="GPIO_board.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/GPIO_board.c"

    'Finished building: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/omapl138/GPIO_board.c"'

    'Building file: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"'

    'Invoking: C6000 Compiler'

    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --include_path="C:/Users/agraw/workspace_v7/GPIO_LedBlink_lcdkOMAPL138_c674xTestProject" --include_path="C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio" --include_path="C:/ti/pdk_omapl138_1_0_4/packages" --include_path="/packages" --include_path="C:/ti/ti-cgt-c6000_8.2.2/include" --define=SOC_OMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=lcdkOMAPL138 --define=c6748 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main_led_blink.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"

    "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c", line 214: warning #112-D: statement is unreachable

    'Finished building: "C:/ti/pdk_omapl138_1_0_4/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c"'

    'Building target: "GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.out"'

    'Invoking: C6000 Linker'

    "C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6740 --define=SOC_OMAPL138 --define=LCDK_OMAPL138 --define=USE_BIOS --define=lcdkOMAPL138 --define=c6748 -g --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_warning=225 --diag_warning=994 --diag_warning=262 --diag_wrap=off --display_error_number -z -m"GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="GPIO_LedBlink_lcdkOMAPL138_c674xTestProject_linkInfo.xml" --rom_model -o "GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.out" "./GPIO_board.obj" "./main_led_blink.obj" "../C6748.cmd" -l"configPkg/linker.cmd" -llibc.a

    <Linking>

    "configPkg/linker.cmd", line 32: error #10264: IROM memory range overlaps existing memory range SHDSPL2ROM

    "configPkg/linker.cmd", line 33: error #10264: IRAM memory range overlaps existing memory range SHDSPL2RAM

    "configPkg/linker.cmd", line 34: error #10264: L3_CBA_RAM memory range overlaps existing memory range SHRAM

    "configPkg/linker.cmd", line 35: error #10264: APP_CODE_MEM memory range overlaps existing memory range DDR2

    "configPkg/linker.cmd", line 36: error #10264: APP_CACHED_DATA_MEM memory range overlaps existing memory range DDR2

    "configPkg/linker.cmd", line 37: error #10264: APP_UNCACHED_DATA_BLK3_MEM memory range overlaps existing memory range DDR2

    "configPkg/linker.cmd", line 38: error #10264: APP_CACHED_DATA_BLK1_MEM memory range overlaps existing memory range DDR2

    "configPkg/linker.cmd", line 39: error #10264: APP_CACHED_DATA_BLK2_MEM memory range overlaps existing memory range DDR2

    error #10010: errors encountered during linking; "GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.out" not built

    >> Compilation failure

    makefile:142: recipe for target 'GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.out' failed

    gmake[1]: *** [GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.out] Error 1

    makefile:138: recipe for target 'all' failed

    gmake: *** [all] Error 2

    **** Build Finished ****

  • It looks like you have multiple linker.cmd files. XDCtools automatically generates one when building so you don't need the one in your workspace. Remove that one and the errors should go away.
  • EM_Bird.zip

    Thanks for replying!

    Yes, I manually deleted the linker file and selected <none> in linker file and it solved my error.

    But there are errors when I am creating a new CCS project and trying to code it like as shown in Example. Please help.

    When I try to include the files which the example includes, it gives many errors and it is always about the unresolved symbols and source file not found.

    I check the include options and file Search path but nothing works. Please have a look at the attached project.

    AND

    Where can I find all the information about the API's, modules and functions which I can directly use for all the peripherals on the LCDK?

    Also, where can I find the information about loading and using packages with config file?

    Thanks again.

  • Hi Sahin,

    Did you find any solution for the above gmake error?