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.

EK-TM4C123GXL: Cannot build examples from resource explorer.

Part Number: EK-TM4C123GXL

These are my settings. 

NOTE: I've compiled this project with different XDC tool versions ranging from 3.3x to 3.6x same error.

Used the default eclipse jre for XDCTOOLS_JAVA_HOME, same error.

  • I imported an example from TI-RTOS for TivaC - 2.16.00.18 into CCS 11.2 running under Ubuntu 18.04 and the example built OK.

    The XDCTOOLS_JAVA_HOME variable was set to /home/mr_halfword/ti/ccs1120/ccs/eclipse/jre which is the JRE installed with CCS 11.2

    I changed to XDCTOOLS_JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64, which was already installed, and the example still built successfully.

    What happens if you try and run the following:

    Fullscreen
    1
    2
    3
    4
    $ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -version
    openjdk version "1.8.0_312"
    OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~18.04-b07)
    OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Perhaps your PC is missing a dependency for the JRE.

    Also, which operating system are you using?

    From the screenshots looks like you are running CCS 11.1

  • OS: kubuntu 21.10
    CCS version: 11.1

  • Hello Pawan,

    We recommend using XDCtools 3.31.3.43 to avoid this error, have you tried that version of the 3.3x versions?

    FAQ with the Recommendation listed: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/947610/faq-where-are-the-ti-rtos-extended-release-notes-for-tivac/3500833#3500833

    Best Regards,

    Ralph Jacobi

  • Yes I've tried that exact version of xdc tools as well. You can see in the shared screenshots above.

    Only difference it made is that instead of showing error of not finding 64 bit jre, it showed error of not finding 32 bit jre.

    I installed openjdk-8-jre 32 bit version and updated the XDCTOOLS_JAVA_HOME variable to point to the corresponding directory as well. No luck 

    I've tried CCS 11.2 on fresh ubuntu 22.04 LTS OS as well and the error was same.

    Now I've ditched the idea of using ti rtos and chose to go with the freertos. There was an example in resource explorer so that helped big time.

  • Hello Pawan,

    I was trying to find some other possible solution to work from here but the only thing I've seen is updating openjdk to be 64-bit. I am not sure if you have tried this step as well. The details were provided here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/522505/can-t-find-jvm-when-building-ti-rtos-projects-xdctools_java_home-error/1900926#1900926

    That said, that was for a much older version of CCS and a few years ago, so I am not too confident that is relevant here.

    Unfortunately I don't have a Linux box to try and recreate this myself and I can't find any other references that would solve this.

    Best Regards,

    Ralph Jacobi

  • Yes I've looked that thread as well and it didn't solve the issue.

    Summary of solutions I've tried so far:

    1) use xdc tools version (3.3x) that require 64 bit jre with both ccs 11.1 and ccs 11.2. Falling back onto older ccs with older OS (ubuntu < 20.04 LTS) didn't make sense.

    2) use xdc tools version (3.31x) that require 32 bit jre with both ccs 11.1 and 11.2 on both ubuntu 20.04 and ubuntu 21.10.

    In both above cases, I've installed corresponding openjdk-8-jre 64 bit/32 bit and set the XDCTOOLS_JAVA_HOME as well.

    Conclusion: At this point I can only conclude that it only works with ubuntu 18.x and I can't use that old OS.

  • Conclusion: At this point I can only conclude that it only works with ubuntu 18.x and I can't use that old OS.

    I tried using the following:

    • Ubuntu 20.04.4 LTS
    • CCS 11.2.0.00007 
    • tirtos_tivac_2_16_01_14
    • xdctools_3_32_00_06_core (the version installed with tirtos_tivac_2_16_01_14)

    With the above was able to successfully compile a TI-RTOS for TivaC example. The XDCTOOLS_JAVA_HOME variable was set to it's default value of /home/mr_halfword/ti/ccs1120/ccs/eclipse/jre which used the JRE from the CCS 11.2 installation.

    I'm not sure why it doesn't work on your system, as I haven't seen the error about a failure to find a JVM.

  • xdctools_3_32_00_06_core (the version installed with tirtos_tivac_2_16_01_14)

    This is something which is most likely the cause of this error in my opinion.
    During fresh install it doesn't let me tick on that optional dependency and if i later try to find this particular version of xdc tool in resource explorer, i couldn't. 

    I thought downloading this xdc tool version from internet (ti website) will solve the optional dependency but it didn't.