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/PROCESSOR-SDK-AM65X: RTOS build error

Part Number: PROCESSOR-SDK-AM65X
Other Parts Discussed in Thread: SYSBIOS, AM6548

Tool/software: Code Composer Studio

Hi,

I'm trying to compile the "TI-RTOS-Kernel Example how it is described in the "processor sdk rtos 06_00_00_07" documentation (9.8 TI-RTOS Kernel Example, 9.8.2 ARM Cortex-A53).

I did all the described steps to create the project like selecting target, compiler, linker command file and so on.

But the building of the project doesn't succeed, i get the following error message (marked red):

**** Clean-only build of configuration Debug for project HelloRTOS ****

"C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O
 
DEL /F  "HelloRTOS.hex"  "configPkg\linker.cmd" "configPkg\compiler.opt"  "HelloRTOS.out"
DEL /F "InitMmu.o" "main.o"
DEL /F "InitMmu.d" "main.d"
RMDIR /S/Q  "configPkg\"
C:\ti\ti\am65x_am53_hello_workspace\Debug\HelloRTOS.hex konnte nicht gefunden werden
C:\ti\ti\am65x_am53_hello_workspace\Debug\HelloRTOS.out konnte nicht gefunden werden
Finished clean
 

**** Build Finished ****

**** Build of configuration Debug for project HelloRTOS ****

"C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
 
Building file: "../sysbios_a53.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_51_01_18_core/xs" --xdcpath="C:/ti/bios_6_75_02_00/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A53F -p ti.platforms.cortexA:AM65X -r debug -c "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf" "../sysbios_a53.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring sysbios_a53.xa53fg from package/cfg/sysbios_a53_pa53fg.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/ti/ti/am65x_am53_hello_workspace/src/sysbios/sysbios.aa53fg ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi_asm_switch_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi_asm_vecs_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Cache_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Core_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/TaskSupport_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Timer_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/TimestampProvider_asm_gnu.sv8A ...
asma53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv8A ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/BIOS.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Clock.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Idle.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Intrinsics.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Queue.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Semaphore.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Swi.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/knl/Task.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/hal/Cache.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_stack.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/hal/Hwi_startup.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/heaps/HeapMem.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Cache.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Core.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Mmu.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/TaskSupport.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/Timer.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/v8a/TimestampProvider.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/timers/dmtimer/Timer.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/a15/TimerSupport.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/gates/GateHwi.c ...
cla53fg C:/ti/bios_6_75_02_00/packages/ti/sysbios/gates/GateMutex.c ...
ara53fg arm_IntrinsicsSupport_asm_gnu.o gicv3_Hwi_asm_gnu.o gicv3_Hwi_asm_switch_gnu.o gicv3_Hwi_asm_vecs_gnu.o v8a_Cache_asm_gnu.o v8a_Core_asm_gnu.o v8a_TaskSupport_asm_gnu.o v8a_Timer_asm_gnu.o v8a_TimestampProvider_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.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_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o heaps_HeapMem.o gicv3_Hwi.o v8a_Cache.o v8a_Core.o v8a_Mmu.o v8a_TaskSupport.o v8a_Timer.o v8a_TimestampProvider.o dmtimer_Timer.o a15_TimerSupport.o gates_GateHwi.o gates_GateMutex.o ...
Build of libraries done.
cla53fg package/cfg/sysbios_a53_pa53fg.c ...
Finished building: "../sysbios_a53.cfg"
 
Building file: "../main.c"
Invoking: GNU Compiler
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc.exe" -c -mcpu=cortex-a53 -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -I"C:/ti/ti/am65x_am53_hello_workspace" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-2 -Wall -specs="nosys.specs" -MMD -MP -MF"main.d" -MT"main.o"  @"configPkg/compiler.opt" -o"main.o" "../main.c"
Finished building: "../main.c"
 
Building file: "../InitMmu.c"
Invoking: GNU Compiler
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc.exe" -c -mcpu=cortex-a53 -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -I"C:/ti/ti/am65x_am53_hello_workspace" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-2 -Wall -specs="nosys.specs" -MMD -MP -MF"InitMmu.d" -MT"InitMmu.o"  @"configPkg/compiler.opt" -o"InitMmu.o" "../InitMmu.c"
Finished building: "../InitMmu.c"
 
Building target: "HelloRTOS.out"
Invoking: GNU Linker
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc.exe" -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Og -g -gdwarf-2 -Wall -specs="nosys.specs" -mcpu=cortex-a53 -Wl,-Map,"HelloRTOS.map" -nostartfiles -L"C:/ti/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"HelloRTOS.out" "./InitMmu.o" "./main.o" -Wl,-T"../linker_a53.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lc -Wl,--end-group
makefile:146: recipe for target 'HelloRTOS.out' failed
C:\ti\ti\am65x_am53_hello_workspace\src\sysbios\sysbios.aa53fg(gicv3_Hwi.o): In function `ti_sysbios_family_arm_gicv3_Hwi_initIntControllerCoreX__E':
C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi.c:435: undefined reference to `ti_sysbios_hal_CoreNull_getId__E'
C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/gicv3/Hwi.c:435:(.text.ti_sysbios_family_arm_gicv3_Hwi_initIntControllerCoreX__E+0x8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ti_sysbios_hal_CoreNull_getId__E'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [HelloRTOS.out] Error 1
gmake: *** [all] Error 2
makefile:142: recipe for target 'all' failed

**** Build Finished ****

What went wrong?

  • Hi user5152556,

    user5152556 said:
    processor sdk rtos 06_00_00_07

    user5152556 said:
    ccs910

    It seems to me that you are using AM65x RTOS v6.00 with CCS v9.1.0. This is not correct. AM65x RTOS v6.00 should be used with CCS v9.0.1, please check the release notes:

    If you switch to the latest AM65x RTOS v6.01, then you should use CCS v9.1.0:

    Regards,
    Pavel

  • Thanks for the answer!

    But reading the releas enotes and switching to AM65x RTOS v6.01 did not help, same error messages as described above..

    But the release notes "6_01_00_08" say at "2.1.6. Known Issues":

    PRSDK-6043 *Multiple platforms CCS TI-RTOS Kernel Example does not work with Resource Explorer in CCS 9.x

    So have i to wait until this error is fixed?? Although i didn't use the Resource Explorer...

  • user5152556,

    I tried this on my side and I am able to reproduce the same error. I am using Ubuntu 16.04 64-bit, AM65x RTOS v6.01, CCS v9.1.0 and SYS/BIOS v6.76.2.

    This is NOT related to PRSDK-6043 known issue, as you are not using CCS Resource Explorer.

    I made the exact steps provided in RTOS user guide section 9.8.2 ARM Cortex-A53, but my CCS build end with:

    Building target: "rtos_hello_world.out"
    Invoking: GNU Linker
    "/home/users/pbotev/ti/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-elf/bin/aarch64-elf-gcc" -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Og -g -gdwarf-2 -Wall -specs="nosys.specs" -mcpu=cortex-a53 -Wl,-Map,"rtos_hello_world.map" -nostartfiles -L"/home/users/pbotev/ti/bios_6_76_02_02/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"rtos_hello_world.out" "./InitMmu.o" "./main.o" -Wl,-T"../linker_a53.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lrdimon -lc -Wl,--end-group
    makefile:144: recipe for target 'rtos_hello_world.out' failed
    /home/users/pbotev/ti/am65x_am53_hello_workspace/rtos_hello_world/src/sysbios/sysbios.aa53fg(gicv3_Hwi.o): In function `ti_sysbios_family_arm_gicv3_Hwi_initIntControllerCoreX__E':
    /home/users/pbotev/ti/bios_6_76_02_02/packages/ti/sysbios/family/arm/gicv3/Hwi.c:435: undefined reference to `ti_sysbios_hal_CoreNull_getId__E'
    /home/users/pbotev/ti/bios_6_76_02_02/packages/ti/sysbios/family/arm/gicv3/Hwi.c:435:(.text.ti_sysbios_family_arm_gicv3_Hwi_initIntControllerCoreX__E+0x8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ti_sysbios_hal_CoreNull_getId__E'
    collect2: error: ld returned 1 exit status
    gmake[1]: *** [rtos_hello_world.out] Error 1
    gmake: *** [all] Error 2
    makefile:140: recipe for target 'all' failed

    **** Build Finished ****

     

    Let me check with our experts regarding this issue.

    Regards,
    Pavel

  • I was able to reproduce the problem using using Windows 10 Pro, AM65x RTOS v6.01, CCS v9.1.0 and SYS/BIOS v6.76.2. The problem appears to be a SYS/BIOS build problem, so I'm reaching out to the TI-RTOS team.

    Regards,
    Frank

  • Hi,

    Please try following the instructions in Section 9.8.2 of the PRSDK documentation, but:

    • Instead of selecting "Empty Projects->Empty Project (with main.c)", choose the SYS/BIOS hello example via "More Examples->Search using Import Wizard".
    • Replace hello.cfg with sysbios_a53.cfg
    • Replace AM6548.lds with linker_a53.lds

    Thanks and regards,
    Frank