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.

CCS5.5 SYSBIOS GCC built for A8/A15 outputs error

Other Parts Discussed in Thread: SYSBIOS

Hi,

Using CCS5.5 I would like to create a SYSBIOS project out of existing templates for TDA2xx > A15. It seems to me there is still no out of the box solution right? Please provide the best approach to create a project.

This is the workaround I'm trying to use in the meantime: As Vayu is not supported for A15 I'm creating a project for A8. I start with a SYSBIOS project to be built on TI compiler for A8. After I change to GNU tools and build again. The error below comes up. After, I change A8 to A15 (gnu.targets.arm.A15F) including platform (ti.platforms.simVayu). I have added GNU linker flags and libraries as stated by Louis Peryea. However, same error.

Can you show best approach to create a A15 project for TDA2xx?

 

**** Build of configuration Debug__GNU for project GnuSYSBIOS_A15 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

'Building file: ../app.cfg'

'Invoking: XDCtools'

"C:/ti/xdctools_3_25_03_72/xs" --xdcpath="C:/ti/bios_6_35_04_50/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.simVayu -r debug -c "C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4" "../app.cfg"

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

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

configuring app.xa15fg from package/cfg/app_pa15fg.cfg ...

generating custom ti.sysbios library makefile ...

Starting build of library sources ...

making C:/Users/a0406303/Documents/CCSworkspace_v5_5_ProfilingTracing/GnuSYSBIOS_A15/src/sysbios.aa15fg ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/timers/gptimer/Timer_asm_gnu.sv7A ...

asma15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/BIOS.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/TaskSupport.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi_stack.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi_startup.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Timer.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Cache.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Clock.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Idle.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Intrinsics.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Queue.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Semaphore.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Swi.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Swi_andn.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Task.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/Cache.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/Mmu.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/gic/Hwi.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/exc/Exception.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/rts/gnu/ReentSupport.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/gates/GateHwi.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/gates/GateMutex.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/systimer/Timer.c ...

cla15fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/heaps/HeapNull.c ...

ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o exc_Exception_asm_gnu.o a15_TimestampProvider_asm_gnu.o a15_Mmu_asm_gnu.o a15_Cache_asm_gnu.o gic_Hwi_asm_gnu.o systimer_Timer_asm_gnu.o gptimer_Timer_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Timer.o hal_Cache.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Swi_andn.o knl_Task.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o gic_Hwi.o exc_Exception.o gnu_ReentSupport.o gates_GateHwi.o gates_GateMutex.o systimer_Timer.o heaps_HeapNull.o ...

Build of libraries done.

cla15fg package/cfg/app_pa15fg.c ...

'Finished building: ../app.cfg'

' '

1 file(s) copied.

making ../src/sysbios.aa15fg ...

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

'Building file: ../main.c'

'Invoking: GNU Compiler'

"C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc.exe" -c -I"C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" @"./configPkg/compiler.opt" "../main.c"

'Finished building: ../main.c'

' '

'Building target: GnuSYSBIOS_A15.out'

'Invoking: GNU Linker'

"C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc.exe" -g -gstrict-dwarf -Wall -Wl,-Map,"GnuSYSBIOS_A15.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -mfloat-abi=hard -o"GnuSYSBIOS_A15.out" "./main.o" -Wl,-T"./configPkg/linker.cmd" -Wl,--start-group -l"gcc" -l"c" -l"m" -Wl,--end-group

C:\Users\a0406303\Documents\CCSworkspace_v5_5_ProfilingTracing\GnuSYSBIOS_A15\Debug__GNU\configPkg\package\cfg\app_pa15fg.oa15fg: In function `xdc_runtime_SysMin_output(int0_t)':

C:\Users\a0406303\Documents\CCSworkspace_v5_5_ProfilingTracing\GnuSYSBIOS_A15\Debug__GNU\configPkg/package/cfg/app_pa15fg.c:2296: undefined reference to `_write'

C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\libc.a(lib_a-signalr.o): In function `_kill_r':

/db/ztree/library/trees/gnu/gnu-b09x/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/newlib/libc/reent/signalr.c:61: undefined reference to `_kill'

C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\libc.a(lib_a-signalr.o): In function `_getpid_r':

/db/ztree/library/trees/gnu/gnu-b09x/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/newlib/libc/reent/signalr.c:96: undefined reference to `_getpid'

collect2.exe: error: ld returned 1 exit status

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

gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Hi Judah,

    thanks for the example. It is working and I can re-build. However, I wanted to creat my own example from CCS.

    I followed the link you provided "How do I enable Semi-Hosting for Cortex-A GNU targets ?". However, receive an error using the latest tools from CCS Version: 5.5.0.00077

    What can I do?

    Thanks,

    Thorsten

    **** Build of configuration Debug for project swi_TI814x_CortexA ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all

    'Building file: ../swi.cfg'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_25_03_72/xs" --xdcpath="C:/ti/bios_6_35_04_50/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmTI814X -r debug -c "C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4" "../swi.cfg"

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

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

    configuring swi.xa8fg from package/cfg/swi_pa8fg.cfg ...

    generating custom ti.sysbios library makefile ...

    Starting build of library sources ...

    making C:/Users/a0406303/Documents/CCSworkspace_v5_5_ProfilingTracing/swi_TI814x_CortexA/src/sysbios.aa8fg ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm_gnu.sv7A ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/Mmu_asm_gnu.sv7A ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/Cache_asm_gnu.sv7A ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_gnu.sv7A ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/timers/gptimer/Timer_asm_gnu.sv7A ...

    asma8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/BIOS.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/TaskSupport.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi_stack.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Hwi_startup.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Timer.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/hal/Cache.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Clock.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Idle.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Intrinsics.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Queue.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Semaphore.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Swi.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Swi_andn.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/knl/Task.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/Cache.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/Mmu.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/TimestampProvider.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/heaps/HeapMem.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/rts/gnu/ReentSupport.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/rts/gnu/SemiHostSupport.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/intcps/Hwi.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/exc/Exception.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/gates/GateHwi.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/gates/GateMutex.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/timers/dmtimer/Timer.c ...

    cla8fg C:/ti/bios_6_35_04_50/packages/ti/sysbios/family/arm/a8/ti81xx/TimerSupport.c ...

    ara8fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o exc_Exception_asm_gnu.o a8_TimestampProvider_asm_gnu.o a8_Mmu_asm_gnu.o a8_Cache_asm_gnu.o intcps_Hwi_asm_gnu.o gptimer_Timer_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Timer.o hal_Cache.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Swi_andn.o knl_Task.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o heaps_HeapMem.o gnu_ReentSupport.o gnu_SemiHostSupport.o intcps_Hwi.o exc_Exception.o gates_GateHwi.o gates_GateMutex.o dmtimer_Timer.o ti81xx_TimerSupport.o ...

    Build of libraries done.

    cla8fg package/cfg/swi_pa8fg.c ...

    'Finished building: ../swi.cfg'

    ' '

    1 file(s) copied.

    making ../src/sysbios.aa8fg ...

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

    'Building file: ../swi.c'

    'Invoking: GNU Compiler'

    "C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc.exe" -c -mfloat-abi=hard -I"C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/arm-none-eabi/include" -g -gstrict-dwarf -Wall -MMD -MP -MF"swi.d" -MT"swi.d" -o"swi.o" @"./configPkg/compiler.opt" "../swi.c"

    'Finished building: ../swi.c'

    ' '

    'Building target: swi_TI814x_CortexA.out'

    'Invoking: GNU Linker'

    "C:/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc.exe" -mfloat-abi=hard -g -gstrict-dwarf -Wall -Wl,-Map,"swi_TI814x_CortexA.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -o"swi_TI814x_CortexA.out" "./swi.o" -Wl,-T"./configPkg/linker.cmd" -Wl,--start-group -l"nosys" -Wl,--end-group -Wl,-( -l"gcc" -l"c" -l"m" -l"rdimon" -Wl,-)

    C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\librdimon.a(rdimon-syscalls.o): In function `_write':

    /db/ztree/library/trees/gnu/gnu-b09x/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/libgloss/arm/syscalls.c:425: multiple definition of `_write'

    C:/ti/xdctools_3_25_03_72/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\libnosys.a(write.o):/db/ztree/library/trees/gnu/gnu-b09x/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/libgloss/libnosys/write.c:19: first defined here

    collect2.exe: error: ld returned 1 exit status

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

    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • I'll have to get back to you on this.  This project was created by a colleague.

    Judah

  • Hi Judah,

    I my installation crashed so I can expect unexpected behavior (see attachment)?

    For CCS5.5 you enforced to promote the TI Resource Explorer rather than of selecting a template during new project creation (Menu>Project>New CCS Project). How come no advanced SYSBIOS templates are displayed anymore?

    Using TI Resource Explorer the specific examples are display.

    Thorsten

  • Hi Judah,

    creating a project for A15 going the (Menu>Project>New CCS Project) path I was able to build. Even I can see the print out on the console (semi host result).

    However, still using TI Resource Explorer offers the complete set of examples. But I could build successfully using it. I give it another try.

    Thorsten

  • Hi Judah,

    it turned out following the process discribed in the wiki is functional as long as you take TI814x an A8. If you do so for ADAS-S28 it doesn't. I would expect that all the processors displayed in the TI Resource Explorer should be functional? NO?

    http://processors.wiki.ti.com/index.php/SYS/BIOS_with_GCC_%28CortexA%29#How_does_variable_initialization_work_in_SYS.2FBIOS_applications_built_for_GNU_targets_.3F

    Thorsten