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/am5726: Compilation error

Part Number: AM5726

Tool/software: TI-RTOS

Trying to compile a number of the TI RTOS examples such as swi_GPEVM_AM572X_SilRevA_CortexA but am running into a compile error.

I am new to the AM57xx and new to the TI RTOS but have gone through a number of quickstarts and wiki's.

I have gotten hello world C67xx demo to compile download and run on the AM57xx evm, but am running into this compiler bug which has to do with the floating point libraries.  I have tried a number of online solutions, but still encounter the error.  

I am using CCS6.x and pointing at the GNU toolchain (I think).

Can someone suggest an answer?

  

  • Blake,

    From the screen shot, it does appear that you have created the project with the Linaro compiler using Resource browser. Can you confirm that you followed the steps here while creating this example.

    Using those steps, I was able to create the SWI example from resource browser and build without any issues. I have attached my build log for your reference.

    **** Build of configuration Debug for project swi_GPEVM_AM572X_SiRevA_CortexA ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../swi.cfg'
    'Invoking: XDCtools'
    "C:/ti/ProcSDK_32_AM57x/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3" "../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.xa15fg from package/cfg/swi_pa15fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/a0272049/prsdk_am57xx/swi_GPEVM_AM572X_SiRevA_CortexA/src/sysbios/sysbios.aa15fg ...
    gmake[1]: Entering directory `C:/Users/a0272049/prsdk_am57xx/swi_GPEVM_AM572X_SiRevA_CortexA/src/sysbios'
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
    asma15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Clock.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Idle.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Queue.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Swi.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Swi_andn.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/knl/Task.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/hal/Cache.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/hal/Core.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/heaps/HeapMem.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Core.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Cache.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
    cla15fg C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/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_Swi_andn.o knl_Task.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o gic_Hwi.o exc_Exception.o gnu_ReentSupport.o gates_GateHwi.o gates_GateMutex.o heaps_HeapMem.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
    gmake[1]: Leaving directory `C:/Users/a0272049/prsdk_am57xx/swi_GPEVM_AM572X_SiRevA_CortexA/src/sysbios'
    Build of libraries done.
    cla15fg package/cfg/swi_pa15fg.c ...
    'Finished building: ../swi.cfg'
    ' '
            1 file(s) copied.
    making ../src/sysbios/sysbios.aa15fg ...
    gmake[1]: Entering directory 'C:/Users/a0272049/prsdk_am57xx/swi_GPEVM_AM572X_SiRevA_CortexA/src/sysbios'
    gmake[1]: Nothing to be done for 'all'.
    gmake[1]: Leaving directory 'C:/Users/a0272049/prsdk_am57xx/swi_GPEVM_AM572X_SiRevA_CortexA/src/sysbios'
    'Building file: ../swi.c'
    'Invoking: GNU Compiler'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"swi.d" -MT"swi.o" -o"swi.o" @"configPkg/compiler.opt" "../swi.c"
    'Finished building: ../swi.c'
    ' '
    'Building target: swi_GPEVM_AM572X_SiRevA_CortexA.out'
    'Invoking: GNU Linker'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -mfloat-abi=hard -Dam5728 -Dcore0 -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,"swi_GPEVM_AM572X_SiRevA_CortexA.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/ProcSDK_32_AM57x/bios_6_46_01_38/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"swi_GPEVM_AM572X_SiRevA_CortexA.out" "./swi.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lm -lnosys -lc -Wl,--end-group 
    'Finished building target: swi_GPEVM_AM572X_SiRevA_CortexA.out'
    ' '
    
    **** Build Finished ****

    couple of things that will help with the debug is if you can go to the console tab in your CCS build and provide the build log. The other thing that will help is if you can confirm that you are working with Processor SDK RTOS components and have followed the steps here to setup the build environment

    Regards,

    Rahul