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/AM5748: Add the compile options

Part Number: AM5748

Tool/software: TI-RTOS

Hi.

My customers want to add the compile options.

-mthumb-interwork

-mthumb

-mfloat-abi = softfp

-mno-unaligned-access

(-mfpu=neon-vfpv 4)

 

They and we confirmed the error with sample projects when building.

・USB_DevBulk_idkAM 574 x _ armExampleProject.

・NIMU_ICSS_BasicExample_idkAM 574 x _ wSoCLib_armExampleproject

Could you tell me how to set up?

■Development environment

TMDSIDK574

pdk_am57xx_1_0_11

CCS v8

GCC GNU v6.3.1(Linaro)

XDCTools 3.50.3.33

Regards,

Rei

  • Hi TI experts,

    When I changed the options , the following error occurred.

    Could you tell me the solution?

    ■Changed options

    Code stage : -marm to -mthumb

    -mfloat-abi = hard to softfp

    -mfpu = (blank) to neon-vfpv4

    ■Error message

    ■Version

    TMDSIDK574

    pdk_am57xx_1_0_11

    CCS v8

    GCC GNU v6.3.1(Linaro)

    XDCTools 3.50.3.33

    Regards,

    Rei

  • You seem to be using incompatible compiler options as the thumb mode of libgcc was not built with the VFP option. there is a work around provided by our compiler team here:

    e2e.ti.com/.../545386

    Please check if this works for you

    Regards,
    Rahul
  • Helo Rahul-san,

    Thank you for your advice.
    Although I've already checked the thread and confirmed the result with defining -mfpu as neon-vfpv4, the error isn't cleared.

    So, could you confirm the attched project and show us the solution?
    The only changes from the original project (USB_DevBulk_idkAM574x_armExampleProject) are the following options.

    Option_USB_DevBulk_idkAM574x_armExampleProject.zip

    -mthumb-interwork
    -mthumb
    -mfloat-abi=softfp
    -mno-unaligned-access
    -mfpu=neon-vfpv4

    We use the following settings and tools:
    idkAM574x
    CCS v8.3
    pdk_am57xx_1_0_11
    GCC GNU v6.3.1 (Linaro)

    Best Regards,
    Rei

  • Rei,

    you can add the -mfpu setting  and the unalgined access setting to the flags in the CCS project using Edit flags option in the GNU compiler settings options as shown below:

    However, we don`t support thumb mode compilation for A15 cores with Processor SDK RTOS. Thumb mode uses 16 bit instruction set and you will need the entire software stack built in this mode.  Also, compiling hardfp libraries with application that uses softfp is not compatible. You need to get your whole system configured one way or the other.

    This has been indicated on multiple tech forums as you can see from below:

    Also, ARM GCC compiler is not a TI product so while we can assist with its usage as it pertains to TI provided software, questions around compatible GCC flags need to be posted on GCC community forums.

    Regards,

    Rahul

  • Please also check the response from Karthik for cortex-A15 support with soft-fp on the E2E thread here:
    e2e.ti.com/.../681827

    Regards,
    Rahul