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.

EVMK2H: SYS/BIOS Hello world example on EVMK2H

Part Number: EVMK2H
Other Parts Discussed in Thread: 66AK2H12, SYSBIOS

Hi,

I have recently bought EVMK2H board and i have tried bare metal examples on ARM using GNU v4.9.3 compiler as well as DSP using TI compiler.

Now i am trying to build the SYS/BIOS Hello world project to get started with the EVMK2H board. Below is the link i followed to build the SYS/BIOS hello world project:

processors.wiki.ti.com/.../Processor_SDK_RTOS_Examples

3) RTSC settings

4) I have also added the xtcievmk2x.gel files

Q) But when i try to build the SYS/BIOS Hello world project it gives me Virtual Floating point register(VFP) errors. I believe the compiler is configured to hard-float-abi, the error message indicates that at least part of the system is using soft-float abi.  Do i need to replace this in GNU compiler flag set. I AM NOT SO SURE. Can anyone help me solve this issue ? The build logs are shown below

Build log:

**** Build of configuration Debug for project hello_66AK2H12_CortexA ****

/home/shahid/ti/ccsv6/utils/bin/gmake -k all
Building file: ../hello.cfg
Invoking: XDCtools
"/home/shahid/ti/xdctools_3_32_01_22_core/xs" --xdcpath="/home/shahid/ti/ti-rtos/bios_6_46_01_38/packages;/home/shahid/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmTCI6636K2H -r release -c "/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3" "../hello.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring hello.xa15fg from package/cfg/hello_pa15fg.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making /home/shahid/workspace_v6_2/hello_66AK2H12_CortexA/src/sysbios/sysbios.aa15fg ...
gmake[1]: Entering directory `/home/shahid/workspace_v6_2/hello_66AK2H12_CortexA/src/sysbios'
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
asma15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/TaskSupport.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Clock.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Idle.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Intrinsics.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Queue.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Semaphore.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Swi.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Swi_andn.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/knl/Task.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/hal/Cache.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/hal/Core.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi_stack.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi_startup.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/heaps/HeapMem.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/gates/GateHwi.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/gates/GateMutex.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/gic/Hwi.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/exc/Exception.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Core.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Cache.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/Mmu.c ...
cla15fg /home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
cla15fg /home/shahid/ti/ti-rtos/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 heaps_HeapMem.o gates_GateHwi.o gates_GateMutex.o gic_Hwi.o exc_Exception.o gnu_ReentSupport.o a15_Core.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o systimer_Timer.o ...
gmake[1]: Leaving directory `/home/shahid/workspace_v6_2/hello_66AK2H12_CortexA/src/sysbios'
Build of libraries done.
cla15fg package/cfg/hello_pa15fg.c ...
Finished building: ../hello.cfg
 
making ../src/sysbios/sysbios.aa15fg ...
gmake[1]: Entering directory '/home/shahid/workspace_v6_2/hello_66AK2H12_CortexA/src/sysbios'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '/home/shahid/workspace_v6_2/hello_66AK2H12_CortexA/src/sysbios'
Building file: ../hello.c
Invoking: GNU Compiler
"/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -I"/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"hello.d" -MT"hello.o" -o"hello.o" @"configPkg/compiler.opt" "../hello.c"
Finished building: ../hello.c
 
Building target: hello_66AK2H12_CortexA.out
Invoking: GNU Linker
"/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc" -mcpu=cortex-a15 -marm -mfloat-abi=hard -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,"hello_66AK2H12_CortexA.map" -nostartfiles -static -Wl,--gc-sections -L"/home/shahid/ti/ti-rtos/bios_6_46_01_38/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -o"hello_66AK2H12_CortexA.out" "./hello.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lm -lnosys -lc -Wl,--end-group
makefile:142: recipe for target 'hello_66AK2H12_CortexA.out' failed
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: error: hello_66AK2H12_CortexA.out uses VFP register arguments, /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(bpabi.o) does not
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(bpabi.o)
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: error: hello_66AK2H12_CortexA.out uses VFP register arguments, /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(_divdi3.o) does not
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(_divdi3.o)
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: error: hello_66AK2H12_CortexA.out uses VFP register arguments, /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(_udivdi3.o) does not
/home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /home/shahid/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/libgcc.a(_udivdi3.o)
collect2: error: ld returned 1 exit status
gmake: *** [hello_66AK2H12_CortexA.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi Shahid,

    I've forwarded this to the SW experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Hi,

    Please clarify which version of Processor SDK RTOS you are using? and do you use the CCS version recommended? I think you used CCS 6.2, please use 6.1.3 for P-SDK 3.2 release. The typical compiler option is: -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -DSOC_K2H -DDEVICE_K2H -D_LITTLE_ENDIAN=1 -I"C:/ti/pdk_k2hk_4_0_3/packages" -I"{NDK_INSTALL_DIR}/packages" -I"C:/ti_6_1_3/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -c -MMD -MP

    We used the toolset suggested and build as it is, no any error.

    Regards, Eric

  • This is known issue reported with CCSv6.2 in JIRA CCDSK-2246. Please refer to the e2e post on this issue that is discussed here:
    e2e.ti.com/.../539973

    Regards,
    Rahul