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.

Compiler/DK-TM4C129X: Ubuntu 16.04 rebuild of fresh CCS/tirtos_tivac_2_16_00_08 install fails with wrong TI compiler version

Part Number: DK-TM4C129X

Tool/software: TI C/C++ Compiler

When I attempt to rebuild drivers under Ubuntu 16.04 on a fresh install, I see the following:

[bredel1@lbnh ti]# cd tirtos_tivac_2_16_00_08/
[bredel1@lbnh tirtos_tivac_2_16_00_08]# ~/ti/xdctools_3_32_00_06_core/gmake -f tirtos.mak drivers
building tirtos drivers...

...

js: "/home/bredel1/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in /home/bredel1/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer.
gmake[1]: *** Deleting file `package.mak'
gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'.  Stop.
gmake: *** [packages/ti/mw/fatfs,.interfaces] Error 2
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/bredel1/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08'
gmake: *** [drivers] Error 2
[bredel1@lbnh tirtos_tivac_2_16_00_08]#

How do I install the right compiler version?  Is there a bigger issue here?

Thanks,

Leo

  • I entered CCS, went to "Help->Install Code Generation Compiler Tools" and installed "TI Compiler Updates->ARM Compiler Tools 5.2.5". "~/ti/xdctools_3_32_00_06_core/gmake -f tirtos.mak all" now completes successfully, and the result links properly with my project.

    I didn't mention this in the last post, but I also have changed

    DEFAULT_INSTALL_DIR ?= c:/ti

    in tirtos.mak to

    DEFAULT_INSTALL_DIR ?= /home/bredel1/ti

    This is the TI installation in my home directory.
  • I'm glad you got it resolved. Just for clarification, was 5.2.5 not there before?
  • I don't know for sure. I just looked in IArm.xs for a hint at what might be required, then tried it. The error message is a little bit misleading. Version 5.2.5 was definitely not installed on the "TI Compiler Updates" menu.
  • I am attempting to set a colleague up with CCS to build our target code. This time, however, I can't make the "5.2.5" message go away. I have uninstalled and reinstalled TI code generation tools of various versions, including 5.2.5, and it still doesn't work. Just what does CCS want when it prints out this message on a TI-RTOS rebuild?
  • Hi Leo,

    Have you made sure the tirtos.mak paths are correct? Namely: CCS_COMPILERS_DIR and ti.targets.arm.elf.M4F.

    Todd
  • Hi Todd:

    Here is what is in tirtos.mak, near the top:

    CCS_COMPILERS_DIR ?= $(DEFAULT_INSTALL_DIR)/ccsv6/tools/compiler
    TI_INSTALL_DIR ?= $(CCS_COMPILERS_DIR)
    ti.targets.arm.elf.M4F ?= $(TI_INSTALL_DIR)/ti-cgt-arm_5.2.5

    Should it be different? Should "5.2.5" simply be changed to the most-recent compiler installation version? Could I uninstall 5.2.5 and change this to 16.9.6.LTS, which is, I believe, the version the system comes installed with?

    Thanks,
    Leo
  • You can use either 5.2.5 or 16.9.6.LTS. You don't need to uninstall anything since this is just a makefile. What's in the $(DEFAULT_INSTALL_DIR)/ccsv6/tools/compiler directory?
  • We did a fresh install of ccsv7 and changed the following in tirtos.mak:

    --- tirtos.mak 2016-04-27 10:11:32.000000000 -0600
    +++ tirtos.mak.new 2018-01-23 16:50:03.454950068 -0700
    @@ -22,8 +22,10 @@
     #  slashes '/'.
     #     Correct Path:    c:/PROGRA~2/IARSYS~1/EMBEDD~1.2
     #
    -DEFAULT_INSTALL_DIR      ?= c:/ti
    -CCS_COMPILERS_DIR        ?= $(DEFAULT_INSTALL_DIR)/ccsv6/tools/compiler
    +#DEFAULT_INSTALL_DIR      ?= c:/ti
    +DEFAULT_INSTALL_DIR      ?= $(HOME)/ti
    +
    +CCS_COMPILERS_DIR        ?= $(DEFAULT_INSTALL_DIR)/ccsv7/tools/compiler
     
     #
     # Enable TI-RTOS to build for CCS.
    @@ -31,7 +33,8 @@
     #
     CCS_BUILD ?= true
     TI_INSTALL_DIR           ?= $(CCS_COMPILERS_DIR)
    -ti.targets.arm.elf.M4F   ?= $(TI_INSTALL_DIR)/ti-cgt-arm_5.2.5
    +#ti.targets.arm.elf.M4F   ?= $(TI_INSTALL_DIR)/ti-cgt-arm_5.2.5
    +ti.targets.arm.elf.M4F   ?= $(TI_INSTALL_DIR)/ti-cgt-arm_16.9.6.LTS
     
     #
     # Enable TI-RTOS to build for IAR.

    The TI-RTOS build works now.  For some reason, tirtos.mak, as downloaded, points to ccsv6 and compiler 5.2.5.