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/CCSTUDIO: Processor SDK RTOS Examples not provided

Expert 1935 points
Part Number: CCSTUDIO
Other Parts Discussed in Thread: AM5728, SYSBIOS

Tool/software: Code Composer Studio

Hello,

following the instructions in:

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

I'm running CCS v7 on Linux.

I don't have the menu entry Resource Explorer (Examples):

Also, if I open any of the other two Resource Explorers, they show a tab with the crashed plugin.

How do I get the the RTOS Example in CCS?

Best regards,

Lo2

  • Lo2,

    The examples would appear under Resource Explorer Classic. The Processor SDK examples have not been integrated into the newer Resource Explorer but they would appear in the "Classic" version that scans through software packages to find examples.

    What Linux distribution are you running?

    You may be able to work around this issue by switching the browser that CCS is using for Resource Explorer. If you go to the Window menu and select Preferences. Then select Code Composer Studio on the left. On the right will be some options for the browser. Try the middle one and restart CCS.

    IF the error still happens can you click on the details button to show more information.

    Regards,
    John
  • Hi John,

    I selected the JavaFX Browser as you described and restarted CCSv7. Now it crashes because I probably have a navigator tab open:


    ==1511852457329 Tc: Utilities::startServer preamble0
    pollServerState for up or ready
    --1511852457365 Tz: ResourceExplorerPage::createMainArea took 2
    --1511852457365 Launching Browser
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00007f3e1d4d536c, pid=10758, tid=0x00007f3f40453700
    #
    # JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  [libgdk-x11-2.0.so.0+0x4e36c]  gdk_display_open+0x5c
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /data/ti/hs_err_pid10758.log
    #
    # If you would like to submit a bug report, please visit:
    #   bugreport.java.com/.../crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

    I've attached the logfile.

    System is a 64 bit Ubuntu, Kernel 4.10, arch x86_64:

    Distributor ID:    Ubuntu
    Description:    Ubuntu 17.04
    Release:    17.04
    Codename:    zesty

    Is there a way to close the Navigator tab before starting CCS?

    Best regards,

    Lo2

    hs_err_pid10758.log

  • Hi John,

    deleting .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi resets the workspace.

    Still I have no functional browser.
    Is there a different way to get to the examples?

    Best regards,
    Lo2
  • Hi John,

    these are my options. Chromium doesn't seem to work, JavaFX crashes CCSv7 and internal browser does nothing.

    Best regards,

    Lo2

  • Lo2,

    Another way to get to the examples is via Project -> Import CCS Projects

    Resource Explorer Classic is just scanning through the installed software packages looking for projects. You can do something similar with the Import tool. Just point it to the folder where the software package is located and it will search for example projects.

    In parallel we can try to figure out what is going on with the browser.

    Regards,
    John
  • Can you check what your glibc version is?
  • Hi John,

    the default glibc6:

    Package: libc6
    Architecture: amd64
    Version: 2.24-9ubuntu2.2
    Multi-Arch: same

    Best regards,

    Lo2

  • Hi John,

    I think I have to reinstall CCS 7 again, my menu does not show an entry to Import CCS Projects.

    Best regards,
    Lo2
  • glibc 2.24 should be fine. There is an issue with 2.26.

    As far as the menu missing, make sure you are in the CCS Edit perspective. If you are in the CCS Debug perspective then Project Menu is a lot smaller and does not have the import item.

    Regards,
    John
  • Hi John,

    On the Linux CCSv7 I'm in the C/C++ perspective. I'll just reinstall.

    I just tried to get the examples on CCS v7 on Windows, CCS 7 installed a few minutes ago.
    The example is now there, but it does not build:

    **** Build of configuration Debug for project hello_AM5728_CortexA ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
    gmake[1]: Entering directory 'C:/Users/lf/workspace_v7/hello_AM5728_CortexA/Debug'
    'Building file: ../hello.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_46_05_55/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "C:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update" "../hello.cfg"
    configuring hello.xa15fg from package/cfg/hello_pa15fg.cfg ...
    subdir_rules.mk:19: recipe for target 'build-1813777487-inproc' failed
    error: xdc.cfg.Program: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
    js: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!

    I did a check for updates and update everything, so it should be up to date.
    There was a CCSv6 install before, is that a problem?

    Best regards,
    Lo2
  • Hi John,

    I searched for xdc and xdctools on processors.wiki.ti.com and ti.com but there is no definitive page for the xdctools.
    - What is the latest version of xdctools?
  • Lo2,

    Try switching the project to use the 3.32 version of XDCTools.  3.32 and 3.50 are not compatible.  I suspect that the examples were done assuming 3.32.  CCS ships with both and if the project is specifying the version correctly it should select the right one.  If it is specifying an even older version then CCS may go ahead and use 3.50.

    If you right click on the project.  Select properties.  Then select General in the tree on the left.  Click on products on the right.  Then change the XDCTools version to 3.32.

    Regards,

    John

  • Hi John,

    on Windows CCSv7 installs xdctools 3.5, the processor sdk contains sysbios (built with xdctools 3.3) and xdctools 3.3.
    If I generate a new project, that will use xdctools 3.5 and use the sysbios from the pdk.
    I could either rebuild sysbios with xdctools 3.5 or downgrade xdctools to 3.3.

    What do you recommend?

    Best regards,
    Lo2
  • Lo2,

    Switch the project to use xdctools 3.3.


    Regards,
    John
  • Hi John,

    works fine, thanks.

    Best regards,
    Lo