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/TMS320F28379D: Debug/Load causes CCS to crash without warning

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE, CCSTUDIO

Tool/software: Code Composer Studio

Hi,

I'm working with the TMS320F28379D and the XDS100v2 Debug probe and running CCS version 10 on a linux platform. I'm having an error/issue with building my CCS project, as CCS simply crashes every time I try to load/debug my program.


There are a few different errors happening that I've been trying to work around: when I try to load the program, I get an error saying multiple debuggable cores available, and then the program will not load. 

Since I'm only actively using one CPU, I changed the target configuration to bypass the second CPU and changed the debug configuration to link my .out file with just the CPU I want to use.

When I debug, sometimes it goes through and displays that my CPU is (disconnected: unknown). And sometimes it simply crashes. Also, sometimes when I try to load the program, CCS also just crashes.

I've tried shutting everything down and restarting, and I've also tried moving my project and starting from an entirely new workspace. I am attaching the dump file that is generated after the crash. 

Any help would be greatly appreciated! Thanks. 

- Sophia 

5070a897-c9f7-d2e5-0cca7a0f-6896eecd.txt

  • Sophia, 

    A few installation details would help with this. Which versions of CCS and Linux are you running? Also, if you installed CCS as a regular user, did you run the installation scripts at the end of the install?

    Also, if you open the .ccxml file under the project's directory targetConfigs, you can test the low level JTAG connection by clicking on the button "Test Connection". If any errors are reported, please search for the error code at the Debugging JTAG page below:

    https://software-dl.ti.com/ccs/esd/documents/ccs_debugging_jtag_connectivity_issues.html 

    Also, if you are using a controlCARD, make sure the JTAG jumper is in the appropriate position. A:SW1 - 1 in the "on" position.  

    That said, I am able to debug my F28379D controlCARD on Ubuntu 18.04.4 and CCSv10.1. I am using a simple project (gpio_ex2_toggle) from C2000Ware 3.02.00.00. 

    Hope this helps,

    Rafael

  • Hi Rafael, 

    Thanks for your response. I am running CCS version 10 on CentOS Linux 7. I'm not sure what you mean by running the installation scripts at the end of the install. I did install CCS as a regular user but I used the GUI interface to install it and not the command line. I selected the correct C2000ware packages from the GUI install. 

    Also, I am able to test my target connection successfully from the .ccxml file with no errors. And previously, I was able to get to that debug window that you shared, only I had the following message: Debug Probe_0/C28xx_CPU1 (Disconnected: Unknown). As my test connection is successful I believe that my board is configured correctly, so I'm not sure how to resolve this error. Also, I have not consistently been able to get to this window either, as sometimes the error "multiple debuggable cores available" will prohibit me from getting this far. Most often, CCS will simply shut down on me. 

    Did you set your debug configurations or target configurations a specific way? 

    Thanks,

    Sophia

  • Sophia,

    At the end of the install, there is a prompt that talks about additional instructions to properly configure the udev rules. 

    These instructions are also mentioned in the CCSv10 Linux Host Support page at:

    https://software-dl.ti.com/ccs/esd/documents/ccsv10_linux_host_support.html

    This will surely explain the inability to connect to the device, as XDS100v2 would only be accessible as a superuser.

    The target configuration has nothing special - the one configured by default with each project usually works well for this device. 

    (edit) we don't officially test CCS on CentOS, but chances are very high it will work. A few developers are using it on this platform.

    Hoep this helps,

    Rafael

  • Rafael, 

    Yes, since I do not have sudo access on my device, I had my system administrator run the install_drivers.sh as sudo, and this allowed me to successfully connect with the XDS100v2 probe. So as far as I know, install_drivers.sh was run and I should have all my necessary dependencies installed. I'm also trying to understand why CCS would simply crash without warning. Since I'm having this error though, would you recommend doing a complete reinstall of CCS as a sudo user through my system admin? 

    Thanks,

    Sophia

  • Hi Sophia,

    Would it possible to share your *.out file that you are loading (when the crash occurs)? If you wish to share it privately, please start a private conversation with me.

    Thanks

    ki

  • Hi Ki, 

    Unfortunately I'm unable to share that file due to work privacy restrictions. However, I do experience these same errors even with example programs from TI. I'm also working remotely from my physical board, but I don't think this should cause the crashes, as CCS can connect and see the target board. 

    Any input is appreciated! 

    Sophia

  • Does the crash usually occur when loading the program?

  • Also, if the crash is pretty reproducible, could you enable debug server logging and reproduce the crash? Then zip the generated log file (it compresses very well) and attach it to this thread.

    Thanks

    ki

  • Hi Ki, 

    CCS crashes when I try to debug my program. If I press the "bug" button or go to debug the program from the menu, CCS begins the debug process and even shows me some successful messages in the console before crashing with no warning. Also, when I try to load the program, I get a load program error: multiple debuggable cores detected. I have attached the dump file generated after a crash. I'm not sure if this is what you were asking for. I'm also trying to run different programs (including CCS example programs) and am also using new/different workspaces. 

    Thank you for your help,

    Sophia6215.5070a897-c9f7-d2e5-0cca7a0f-6896eecd.txt

  • Also, would it possible for you to send me a project that has been built and successfully loaded with this target configuration? The odd thing is that my program will build successfully and almost looks like it will debug successfully, but then just crashes. This is the same with example programs from TI. So I'm wondering if trying to run a project that was successfully run on this board by you will help me eliminate causes for this problem. Thank you. 

    -Sophia

  • Hi Sophia,

    What file format is that last txt file you attached? It does not appear to be a ds log.

    I realized I was not being clear what I meant by a debug server log. Please see the below article:

    https://software-dl.ti.com/ccs/esd/documents/ccs_diagnostic-logs.html

    Thanks

    ki

  • Sophia Yoo said:
    Also, would it possible for you to send me a project that has been built and successfully loaded with this target configuration? The odd thing is that my program will build successfully and almost looks like it will debug successfully, but then just crashes. This is the same with example programs from TI. So I'm wondering if trying to run a project that was successfully run on this board by you will help me eliminate causes for this problem.

    I've run many of the examples from C2000Ware without issue. However, I have not tried CCS on CentOS. I will look at setting up such an environment to test it myself

    Thanks

    ki

  • Hi Ki, 

    The file I previously attached was the .dmp file generated after the crash. 

    I followed the instructions to get the debug server log, but unfortunately, I've run into yet another error about no active debug session. I'm confused because on the side of my project name I see [Active - Debug]. But also, all of these issues originated with trying to debug the project and having CCS crash.. 

    This is the error message I'm getting when trying to generate the debug server log: 

    Thank you for your help,

    Sophia

  • Sophia Yoo said:
    This is the error message I'm getting when trying to generate the debug server log: 

    the link to the screenshot appears to be broken. Can you repost it?

    Thanks

    ki

  • Hi Ki, 

    Apologies. Here is the image: 

    Thanks,

    Sophia

  • I see. Thank you. Debug server logging requires an active debug session. But if the debugger crashes before a debug session can be started, the you will not be able to start the logging.

    I will get the dmp file analyzed. It should some useful information. I will also try on CentOS and see if I can reproduce the issue.

    I will keep you posted of any updates.

    Thanks

    ki

  • Ki said:
    I will also try on CentOS and see if I can reproduce the issue.

    You are using CentOS 7, correct? CCS 10.x requires glibc 2.18 while CentOS 7 has and older glibc. Did you resolve this dependency?

  • Based on information in the provided crash dmp file, it looks like it is associated with glibc. Did you update your CentOS system with glibc 2.18+?

  • Yes I'm using CentOS version 7. I did not update my OS with glibc 2.18+. How should I do this? And can I perform this as a regular user or does it need to be as sudo? 

    Thanks! 

  • I believe you need to have sudo access. As for how to update, I don't know what the best method is. Most people just say it is best to update the OS to version 8, though that is not always practical. Perhaps your IT dept will know.

    When installing CCS, did you get a warning about your glibc version? It should detect any missing (or out of date) dependencies.

  • Hi Ki, 

    My system admin installed CCS v 10 as sudo with device drivers. Unfortunately when I just ran the program to debug it, it crashed and generated this message: 

    JxBrowser - init()
    10:55:56 SEVERE: There are next missing dependencies:
    browsercore64 => libXss.so.1
    libbrowsercore64.so => libXss.so.1
    10:55:56 SEVERE: Failed to start IPC process.
    java.lang.IllegalStateException: Missing dependendecies have been detected. Check the log for details.
    at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcessLinux.preProcessRun(SourceFile:3150)
    at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcess.doStart(SourceFile:62)
    at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(SourceFile:235)
    at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:193)
    at java.lang.Thread.run(Thread.java:745)
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to start IPC process.
    at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:200)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalStateException: Missing dependendecies have been detected. Check the log for details.
    at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcessLinux.preProcessRun(SourceFile:3150)
    at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcess.doStart(SourceFile:62)
    at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(SourceFile:235)
    at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:193)
    ... 1 more

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:29280): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    2020-07-24 10:55:57.390:INFO::Worker-1: Executing the early startup extensions: Logging initialized @20023ms to org.eclipse.jetty.util.log.StdErrLog
    2020-07-24 10:55:57.479:INFO:oejs.Server:Worker-1: Executing the early startup extensions: jetty-9.4.24.v20191120; built: 2019-11-22T15:55:43.345Z; git: 363d5f2df3a8a28de40604320230664b9c793c16; jvm 1.8.0_112-b15
    2020-07-24 10:55:57.511:INFO:oejs.AbstractConnector:Worker-1: Executing the early startup extensions: Started ServerConnector@17e2a17e{HTTP/1.1,[http/1.1]}{127.0.0.1:46132}
    2020-07-24 10:55:57.512:INFO:oejs.Server:Worker-1: Executing the early startup extensions: Started @20145ms

    CCS HTTP adapter started! [ccs.port:46132] - Open 'http://localhost:46132/ide' in web browser to see listing of available APIs...

    /opt/ti/ccs1010/ccs/eclipse/ccstudio: line 2: 29280 Aborted (core dumped) /opt/ti/ccs1010/ccs/eclipse/ccstudio.dist $@ --launcher.appendVmargs -vmargs -Djava.io.tmpdir=/tmp/${USER}

     

    It does look like I'm missing dependencies like you said. I will ask my admin to make sure glibc2.18+ is installed, do you know what other dependencies look to be missing? 

    Thanks,

    Sophia

  • Sophia Yoo said:
    It does look like I'm missing dependencies like you said. I will ask my admin to make sure glibc2.18+ is installed, do you know what other dependencies look to be missing? 

    The installer should pop up a screen regarding any missing dependencies during the installation process. You would need to address any of those detected by the installer.

    Also, please also take a look at the dependencies listed in the below link:

    https://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#CentOS_7.0_64bit

    While the information in the link is for an old CCS version, I think it is still relevant for current version also.

    ki

  • My system admin installed libXss and we also have glibc-2.25 installed. Unfortunately, I'm still experiencing all the same errors from previously. CCS still crashes on debug and gives me a "Multiple debugabble cores detected" load error. This is the warning message I get when CCS crashes: 

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    2020-07-24 14:05:04.510:INFO::Worker-5: Executing the early startup extensions: Logging initialized @5436ms to org.eclipse.jetty.util.log.StdErrLog
    2020-07-24 14:05:04.606:INFO:oejs.Server:Worker-5: Executing the early startup extensions: jetty-9.4.24.v20191120; built: 2019-11-22T15:55:43.345Z; git: 363d5f2df3a8a28de40604320230664b9c793c16; jvm 1.8.0_112-b15
    2020-07-24 14:05:04.648:INFO:oejs.AbstractConnector:Worker-5: Executing the early startup extensions: Started ServerConnector@444f80a0{HTTP/1.1,[http/1.1]}{127.0.0.1:34763}
    2020-07-24 14:05:04.648:INFO:oejs.Server:Worker-5: Executing the early startup extensions: Started @5574ms

    CCS HTTP adapter started! [ccs.port:34763] - Open 'http://localhost:34763/ide' in web browser to see listing of available APIs...

    /opt/ti/ccs1010/ccs/eclipse/ccstudio: line 3: 2225 Aborted (core dumped) /opt/ti/ccs1010/ccs/eclipse/ccstudio.dist $@ --launcher.appendVmargs -vmargs -Djava.io.tmpdir=/tmp/${USER}

    What do you recommend I do? Also, would you be able to send me a built and debuggable project for CCS10 so I can see all the configurations and compare them to mine? 

    Thank you,

    Sophia

  • Sophia Yoo said:
    (Code Composer Studio:2225): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    Don't worry about these messages. They are not related to the crash and can be ignored.

    Sorry for the delay on this. I am trying to replicate your environment. Since it is a non-standard environment that we don't officially support, it is taking some time. Thank you for your patience.

    ki

  • Sophia - have you tried running CCSv9.3.0? That version works well for me on CentOS 7. I am having issues with CCSV10.x 

  • Hi Ki, 

    Yes, we installed CCSv9.3.0 and also installed the C2000v20.2 compiler for this version. 

    I'm able to connect to my target board, but unfortunately CCS is still crashing on a debug or a load as before. The terminal generates a dump file and also gives the same error after the crash:

    (Code Composer Studio:7762): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:7762): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    2020-07-27 18:35:34.274:INFO::Worker-11: Workbench early startup: Logging initialized @13013ms to org.eclipse.jetty.util.log.StdErrLog

    2020-07-27 18:35:34.395:INFO:oejs.Server:Worker-11: Workbench early startup: jetty-9.4.10.v20180503; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_112-b15

    2020-07-27 18:35:34.438:INFO:oejs.AbstractConnector:Worker-11: Workbench early startup: Started ServerConnector@5ecad558{HTTP/1.1,[http/1.1]}{127.0.0.1:35858}

    2020-07-27 18:35:34.438:INFO:oejs.Server:Worker-11: Workbench early startup: Started @13177ms

    CCS HTTP adapter started! [ccs.port:35858] - Open 'http://localhost:35858/ide' in web browser to see listing of available APIs...

    /opt/ti/ccs930/ccs/eclipse/ccstudio: line 2:  7762 Aborted                 (core dumped) /opt/ti/ccs930/ccs/eclipse/ccstudio.dist $@ --launcher.appendVmargs -vmargs -Djava.io.tmpdir=/tmp/${USER}

    What kind of issues were you having with CCSv10? And did you configure CCSv9 any differently? Do you have suggestions on what I could do to resolve my CCSv9 issues? 

    Thanks for your help, 

    Sophia

  • Sophia Yoo said:
    What kind of issues were you having with CCSv10?

    Based on what I have read, CentOS 7 seems to support glibc up to 2.17. How did you update glibc to 2.25 in your installation?

    Sophia Yoo said:
    And did you configure CCSv9 any differently?

    No, I just ran sudo yum install libXScrnSaver glibc.i686 and then v9 installed and runs fine.

    Are you running CCS with sudo?

  • My system admin was able to install glibc2.25, I'm not quite sure how. Previously, the error I was having with CCSv10 was that it would crash when I tried to debug or load any program. 

    I am not using CCSv9 (or CCSv10) as sudo. Is this necessary? 

    Thanks,

    Sophia

  • Sophia Yoo said:
    I am not using CCSv9 (or CCSv10) as sudo. Is this necessary? 

    It sounds like CCS was installed by your system admin under sudo/root permissions. In such cases, it may be necessary to run CCS as sudo. I'll need to try this out.

    Also, I just want to confirm if the install_drivers.sh script was run under sudo.

  • Yes, the install_drivers.sh script was run under sudo. And sounds good, I have also asked my system admin if I'd be able to get sudo permissions to try to run the program. 

  • I was able to start up CCS as sudo, but the program still crashes on debug for my program. This is the warning generated in the terminal after the crash: 

    [root@maia-dev-laptop ~]$ sudo /opt/ti/ccs930/ccs/eclipse/ccstudio
    JxBrowser - init()
    08:59:45 SEVERE: [0804/085945.956288:ERROR:gl_surface_glx.cc(415)] glxQueryVersion failed
    08:59:45 SEVERE: [0804/085945.956307:ERROR:gl_initializer_x11.cc(157)] GLSurfaceGLX::InitializeOneOff failed.
    08:59:45 SEVERE: [0804/085945.957923:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
    08:59:45 SEVERE: [0804/085945.962045:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process.
    08:59:46 SEVERE: [0804/085946.070865:ERROR:gpu_process_transport_factory.cc(1019)] Lost UI shared context.

    (Code Composer Studio:32679): Gdk-WARNING **: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.

    (Code Composer Studio:32679): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    (Code Composer Studio:32679): Gtk-WARNING **: Negative content width -7 (allocation 6, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem)

    2020-08-04 08:59:49.347:INFO::Worker-7: Workbench early startup: Logging initialized @11979ms to org.eclipse.jetty.util.log.StdErrLog
    2020-08-04 08:59:49.502:INFO:oejs.Server:Worker-7: Workbench early startup: jetty-9.4.10.v20180503; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_112-b15
    2020-08-04 08:59:49.563:INFO:oejs.AbstractConnector:Worker-7: Workbench early startup: Started ServerConnector@6580f389{HTTP/1.1,[http/1.1]}{127.0.0.1:36326}
    2020-08-04 08:59:49.576:INFO:oejs.Server:Worker-7: Workbench early startup: Started @12208ms

    CCS HTTP adapter started! [ccs.port:36326] - Open 'http://localhost:36326/ide' in web browser to see listing of available APIs...

    /opt/ti/ccs930/ccs/eclipse/ccstudio: line 2: 32679 Aborted (core dumped) /opt/ti/ccs930/ccs/eclipse/ccstudio.dist $@ --launcher.appendVmargs -vmargs -Djava.io.tmpdir=/tmp/${USER}

    On the plus side, I am now able to run example TI program with my board and it is able to debug successfully. Would you be able to advise me on how to configure my program so it will load and run successfully? 

    Thank you,

    Sophia