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.

CCS/66AK2H14: "armcl not found" when attempting to compile K2H boot examples on Linux

Part Number: 66AK2H14

Tool/software: Code Composer Studio

I am trying to compile the boot examples from:

git.ti.com:keystone2_boot_examples/keystone2_boot_examples.git

and I am following the instructions here for Linux:

http://processors.wiki.ti.com/index.php/KeystoneII_Boot_Examples

The setupLinuxEnv.sh script defines an environment variable ARM_COMPILER_FOLDER which in the example points to:

$HOME/ti/ccsv5/tools/compiler/arm_5.0.4

The instructions state a requirement for a TI ARM Compiler that comes with Code Composer Studio. Well after changing that variable to point to my CCSv7 installation I tried to build the K2H boot examples with "make k2h_examples" and I get the following error:

/home/user01/ti/ccs720/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/armcl: Command not found

Well I was confused that the GNU cross compiler toolchain wasn't being called but instead armcl was. How am I supposed to build the boot examples when CCSv7 doesnt come with armcl? Should I install an older version of CCS? Can the boot examples be built with CCSv7 on Linux? How?

Thanks for the help!

  • The armcl refer to TI ARM compiler toolchain and not the GNU GCC compiler. To build it, you need to point the compiler to :
    ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin

    Ensure that you have TI ARM compiler tool chain in the installation. The version numbering has been updated to keep up with LTS releases. When downloading CCSv7 there is an option to install TI ARM compiler.

    Regards,
    Rahul
  • Thanks Rahul. I reinstalled CCSv7 but instead of choosing only the Keystone target but I selected all of the others since it wasn't clear which would install ti-cgt-arm_16.9.1.LTS. After I completed the install I changed the environment variable ARM_COMPILER_FOLDER to now point to ti-cgt-arm_16.9.3.LTS and now armcl is present. When I try to build the example code I get the following error:

    fatal error: As of version 15.3.0.STS of the ARM CGT, COFF ABI support
       (ti_arm9_abi) is discontinued. If COFF ABI support is needed for your
       application, please use ARM CGT version 5.2.x.

    I made no changes to the boot example code and I don't know if COFF ABI support is needed for the boot examples. Should I use an older ARM CGT?

    Thanks again!

  • Brandon,

    This appears to be a TI ARM compiler issue so I will need for the compiler team to comment on how to resolve this issue. The cause of the build fail seems to be that the newer ARM compilers are depricated and build only ELF binary formats.

    The examples created few years back was using a version of the compiler that allows ELF and COFF binary build. I will let the compiler team recommend a suitable version but from the examples perspective, the validation was done using ARM compiler that was part of CCSv6

    Regards,
    Rahul
  • You only get this message ...

    Brandon Maas said:
    fatal error: As of version 15.3.0.STS of the ARM CGT, COFF ABI support
       (ti_arm9_abi) is discontinued. If COFF ABI support is needed for your
       application, please use ARM CGT version 5.2.x.

    ... if the TI ARM compiler switch --abi=ti_arm9_abi is used in a newer compiler.  So, it is safe to assume use of TI_ARM9_ABI is required for your system.  This means you have to change to using a version 5.2.x compiler.  The only way to access older TI ARM compilers is through the CCS update feature.  Please see the section titled Changing Compiler Versions in the article Projects and Build Handbook for CCS.

    Thanks and regards,

    -George