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.

how to generate .o or .a files as a result of cross compilation with linaro toolchain?

Dear all,

I want to get .o or .a files from cross compilation, after that i want to combine these files with .c files in CCS, then i want to build the whole package in CCS and run on K2L/K2K board.

Is it possible?

If yes then how to do it???

Thanks & best regards,

Hemraj

  • Yes, this is possible using CCSv6.1.2 and later versions of Code composer studio.

    For bare-metal code development on K2H and K2K, I recommend that you start with the Processor SDK RTOS offering which is a combination of bare-metal examples, LLD driver, register and function Chip support library and RTOS examples for these platforms.

    The Getting started guide for the SDK describes, how bare-metal examples can be setup in CCS using pre-defined CCS templates and the SDK provides scripts to generate CCS projects that can then be imported into CCS for driver development.

    Here is the link to build and .out files using Linaro compiler for A15 on K2 devices:
    processors.wiki.ti.com/.../Processor_SDK_Bare_Metal_Examples

    Note: CCS template doesn`t add the .lds file for K2L but you can reuse the K2G lds file which has the same memory map for MSMC, DDR and internal memories.

    For building .a you will need to setup the project to build a library rather than an applicaton project.

    Regards,
    Rahul
  • Dear Rahul Prabhu,

    Thank you very much for your reply.

    I want to create .a or .o files from C/C++ source files as a result of cross compilation on Linux machine. Please explain step by step how to do it???

    After that I want to integrate those .a or .o files in CCS project , build the integrated project in CCS and run it on K2L/K2K board in TI RTOS environment.

    Note:- Please explain the whole process step by step in detail.

     

     

    Thanks & Best Regards,

    Hemraj

  • For creating .a or .lib in CCS IDE:

    You have to mention the "output type" as "static library" in "Advanced Settings" while creating new CCS project.