J721EXSOMXEVM: Compiling PDK with GCC

Part Number: J721EXSOMXEVM

Tool/software:

Hi,

Is there any official/supported way to compile the PDK for the R5 coprocessors for the J721-EVM with GCC? I understand the assembly and the linker script files are the biggest differences here, so is there a version of them for GCC? Or something else we should consider?
For our project, adding support for a new compiler is really cumbersome, so we'd like to try alternatives to get the PDK compiled with GCC.

Regards,

ANDERSON

  • Hi,

    There is no support for the compiling PDK with GCC.
    You need to create a new linker compatible with GCC and use compiler options of GCC instead of ARM CGT TI compiler.

    Best Regards,
    Sudheer

  • Porting the linker script is fine, but the issue comes to the startup and FreeRTOS assembly files. Using GCC compiler options only won't do.

    Some vendors provide C file variants of the startup files alongside the assembly ones, therefore my question. 

  • Hi,

    Porting the linker script is fine, but the issue comes to the startup and FreeRTOS assembly files. Using GCC compiler options only won't do.

    Some vendors provide C file variants of the startup files alongside the assembly ones, therefore my question. 

    Do you mean R5F startup files and others.
    SDK has source files of those as well, by default some libraries are built and have it in SDK, applications including those libraries directly instead of source files.

    Refer to below capture.


    If you not found a specific source file, please let us know. 

    Note: TI is not supporting PDK components build with GCC.

    Best Regards,
    Sudheer

  • The other ASM files in the picture won't compile by simply changing the flags. Same goes for the FreeRTOS porting layer.

    Could them be compiled as a static library using tiarmclang and later on linked with GCC?

    I understand there's no support for GCC builds from TI, but I thought it would be worth checking if other customers have faced a similar scenario and might have a solution.

  • Hi,

    The other ASM files in the picture won't compile by simply changing the flags. Same goes for the FreeRTOS porting layer.

    If you look at the make file system, we are including those ASM files directly into your complier. 


    You might need to follow similar approach in GCC.
    You need understand how PDK make file system and compiler options used same need to be migrate to GCC.

    This is what available in TI SDK, we don't have any support related to building PDK using GCC.

    Best Regards,
    Sudheer