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/CODECOMPOSER: AM572x example compilation error

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi I am using "ti-processor-sdk-rtos-am57xx-evm-04.02.00.09-Linux-x86-Install". I have installed CCS7.4 also.

Then I have imported rtos_template_app_am572x_a15 example. When I built it, then an error is shown. Following is the error.


**** Build of configuration Debug for project rtos_template_app_am572x_a15 ****

/ti/ccsv8/utils/bin/gmake -k -j 8 all -O
 
Building file: "../main.cfg"
Invoking: XDCtools
"/ti/xdctools_3_50_03_33_core/xs" --xdcpath="/ti/bios_6_52_00_12/packages;/ti/pdk_am57xx_1_0_9/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "/ti/gcc-arm-none-eabi-6-2017-q1-update" "../main.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring main.xa15fg from package/cfg/main_pa15fg.cfg ...
generating custom ti.sysbios library makefile ...
subdir_rules.mk:17: recipe for target 'build-1399971135-inproc' failed
js: "/ti/pdk_am57xx_1_0_9/packages/ti/drv/spi/package.xs", line 123: Error:     Library not found: /ti/pdk_am57xx_1_0_9/packages/ti/drv/spi/./lib/am572x/a15/release/ti.drv.spi.aa15fg
gmake: *** [package/cfg/main_pa15fg.xdl] Error 1
gmake: *** Deleting file `package/cfg/main_pa15fg.xdl'
gmake: *** [package/cfg/main_pa15fg.xdl] Deleting file `package/cfg/main_pa15fg.h'
gmake: *** [package/cfg/main_pa15fg.xdl] Deleting file `package/cfg/main_pa15fg.c'
js: "/ti/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1399971135-inproc] Error 1
gmake: *** [build-1399971135] Error 2
subdir_rules.mk:14: recipe for target 'build-1399971135' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Could you please guide me about this issue.

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Did you follow the processors.wiki.ti.com/.../Processor_SDK_RTOS_Template_App In the Processor SDK RTOS 4.2 release, the CCS used is 7.3. The SYSBIOS and XDC used are correct.


    **** Build of configuration Debug for project rtos_template_app_am572x_a15 ****

    "C:\\ti_7_3_0\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    gmake[1]: Entering directory 'C:/Users/a0271557/workspace_v7_3/rtos_template_app_am572x_a15/Debug'
    'Building file: ../main.cfg'
    'Invoking: XDCtools'
    "C:/ti_7_3_0/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am57xx_1_0_9/packages;C:/ti_7_3_0/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update" "../main.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring main.xa15fg from package/cfg/main_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ...
    Linking with library ti.drv.spi:./lib/am572x/a15/release/ti.drv.spi.aa15fg
    Linking with library ti.drv.gpio:./lib/am572x/a15/release/ti.drv.gpio.aa15fg
    Linking with library ti.drv.uart:./lib/am572x/a15/release/ti.drv.uart.aa15fg
    Linking with library ti.drv.i2c:./lib/am572x/a15/release/ti.drv.i2c.aa15fg
    Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg
    Linking with library ti.osal:./lib/tirtos/a15/release/ti.osal.aa15fg
    Starting build of library sources ...
    making C:/Users/a0271557/workspace_v7_3/rtos_template_app_am572x_a15/src/sysbios/sysbios.aa15fg ...
    gmake[1]: Entering directory `C:/Users/a0271557/workspace_v7_3/rtos_template_app_am572x_a15/src/sysbios'
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Clock.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Idle.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Queue.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Swi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Task.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Cache.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Core.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/SemiHostSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/shared/vayu/IntXbar.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/heaps/HeapMem.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a15_Cache_asm_gnu.o a15_Mmu_asm_gnu.o a15_TimestampProvider_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gnu_ReentSupport.o gnu_SemiHostSupport.o gic_Hwi.o exc_Exception.o vayu_IntXbar.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o gates_GateHwi.o gates_GateMutex.o heaps_HeapMem.o systimer_Timer.o ...
    gmake[1]: Leaving directory `C:/Users/a0271557/workspace_v7_3/rtos_template_app_am572x_a15/src/sysbios'
    Build of libraries done.
    cla15fg package/cfg/main_pa15fg.c ...
    'Finished building: ../main.cfg'
    ' '
    gmake[1]: Leaving directory 'C:/Users/a0271557/workspace_v7_3/rtos_template_app_am572x_a15/Debug'
    'Building file: ../app.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DevmAM572x -DSOC_AM572x -Dam5728 -I"C:/Users/a000000/workspace_v7_3/rtos_template_app_am572x_a15" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"app.d" -MT"app.o" -o"app.o" @"configPkg/compiler.opt" "../app.c"
    'Finished building: ../app.c'
    ' '
    'Building file: ../GPIO_evmAM572x_board.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DevmAM572x -DSOC_AM572x -Dam5728 -I"C:/Users/a000000/workspace_v7_3/rtos_template_app_am572x_a15" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"GPIO_evmAM572x_board.d" -MT"GPIO_evmAM572x_board.o" -o"GPIO_evmAM572x_board.o" @"configPkg/compiler.opt" "../GPIO_evmAM572x_board.c"
    'Finished building: ../GPIO_evmAM572x_board.c'
    ' '
    'Building file: ../main.c'
    'Invoking: GNU Compiler'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DevmAM572x -DSOC_AM572x -Dam5728 -I"C:/Users/a000000/workspace_v7_3/rtos_template_app_am572x_a15" -I"C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o" -o"main.o" @"configPkg/compiler.opt" "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: rtos_template_app_am572x_a15.out'
    'Invoking: GNU Linker'
    "C:/ti_7_3_0/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a15 -marm -Dam5726 -Dcore0 -DevmAM572x -DSOC_AM572x -Dam5728 -g -gdwarf-3 -gstrict-dwarf -Wall -mfloat-abi=hard -Wl,-Map,"rtos_template_app_am572x_a15.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/pdk_am57xx_1_0_9/packages/ti/board/lib/evmAM572x/a15/release/" -L"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"rtos_template_app_am572x_a15.out" "./GPIO_evmAM572x_board.o" "./app.o" "./main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -l:ti.board.aa15fg -lgcc -lm -lrdimon -lc -Wl,--end-group
    'Finished building target: rtos_template_app_am572x_a15.out'
    ' '

    **** Build Finished ****

    For your error: /ti/pdk_am57xx_1_0_9/packages/ti/drv/spi/./lib/am572x/a15/release/ti.drv.spi.aa15fg==========> please double check if this file is there or not? I think the Linux installer should have this file as well.

    Regards, Eric
  • Hi Eric,

    Thank for replying.
    I have reinstalled the sdk and have installed mono.
    after that I am able to build the project successfully.