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 5.3.0.00090 Debug error

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I have installed ( and reinstalled many times )CCS on my Linux ubuntu 10.04.

I can compile projects but debug send me this message :

Error initializing emulator:
Error loading libdebug.so. Please make sure that the file exists (/opt/ti/ccsv5/ccs_base/DebugServer/drivers/libdebug.so)

I dont't undesrstand because this file exist at its rigth place.

Any help would be appreciated

Regards.

Bernard

  • Is that a 64-bit Ubuntu install? If so, you may be missing the 32-bit libraries.

    This  may be of some help, but Ubuntu 10.04  32-bit would normally just work without any need to install additional packages.

  • Hello Andy,

    Thx

    I am running Ubuntu 32-bits.

    I did search on google but haven't found information about this issue

    This is driving me mad :)

    Regards

    Bernard

  • There is likely a dependency issue which we should be able to resolve. Can you run ldd on the file in the error message? You should see something like this if all the dependencies are found:

    $ ldd libdebug.so         linux-gate.so.1 =>  (0x0036b000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00817000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00956000)
        /lib/ld-linux.so.2 (0x006e4000)

    It would be a good idea to check libDebugServer.so in the DebugServer/bin folder. You should see something like this:

    $ ldd libDebugServer.so
        linux-gate.so.1 =>  (0x001d8000)
        libtiofr11.so => /ti/ccsv5/ccs_base/DebugServer/bin/./libtiofr11.so (0x00110000)
        libsetup_parser.so => /ti/ccsv5/ccs_base/DebugServer/bin/./../../common/bin/libsetup_parser.so (0x00268000)
        libti_logger.so => /ti/ccsv5/ccs_base/DebugServer/bin/./../../common/bin/libti_logger.so (0x001d9000)
        libXPCOMUtility.so => /ti/ccsv5/ccs_base/DebugServer/bin/./libXPCOMUtility.so (0x001fc000)
        libfsutil.so => /ti/ccsv5/ccs_base/DebugServer/bin/./../../common/bin/libfsutil.so (0x00d95000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x001b8000)
        libti_xpcom.so => /ti/ccsv5/ccs_base/DebugServer/bin/./libti_xpcom.so (0x00e06000)
        libxerces-c.so.25 => /ti/ccsv5/ccs_base/DebugServer/bin/./../../common/bin/libxerces-c.so.25 (0x00e80000)
        libjvm.so => not found
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x001bc000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x1d9c7000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x004fe000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x07c66000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00524000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x11f7f000)
        /lib/ld-linux.so.2 (0x0024b000)

    If certain libraries are not found, then this would be a hint as to what packages may need to be updated or installed.

  • Hi Andy,

    Thank you for help.

    I have got the same you posted typing ldd.

    I am going to install CCS on windows , may be simpler for me , provided Santa brings me a new brand PC :)

    I wish you a merry Christmas ....

    Bernard.

  • Andy,

    I am seeing the same issue with Ubuntu 12.04, i.e. Error loading libdebug.so. Please make sure that the file exists (/opt/ti/ccsv5/ccs_base/DebugServer/drivers/libdebug.so)

    Here is the result of running the ld commands you requested:

    $ ldd /opt/ti/ccsv5/ccs_base/DebugServer/drivers/libdebug.so
        linux-gate.so.1 =>  (0xb7744000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb76d9000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb752f000)
        /lib/ld-linux.so.2 (0xb7745000)

    $ ldd /opt/ti/ccsv5/ccs_base/DebugServer/bin/libDebugServer.so
        linux-gate.so.1 =>  (0xb76f8000)
        libtiofr11.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/libtiofr11.so (0xb6c5a000)
        libsetup_parser.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/../../common/bin/libsetup_parser.so (0xb69da000)
        libti_logger.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/../../common/bin/libti_logger.so (0xb69ae000)
        libXPCOMUtility.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/libXPCOMUtility.so (0xb696f000)
        libfsutil.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/../../common/bin/libfsutil.so (0xb6904000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb68e7000)
        libti_xpcom.so => /opt/ti/ccsv5/ccs_base/DebugServer/bin/libti_xpcom.so (0xb6885000)
        libxerces-c.so.25 => /opt/ti/ccsv5/ccs_base/DebugServer/bin/../../common/bin/libxerces-c.so.25 (0xb6500000)
        libjvm.so => not found
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb64f7000)
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6412000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb63e5000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb63c7000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb63ac000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6202000)
        /lib/ld-linux.so.2 (0xb76f9000)

    Any clues in the above?

    Thanks!

    Steve

  • Steve, could you confirm you have installed libjpg as mentioned here (x64 or the x86 version just below)?  Also, are you using a 64 or 32 bit distro?

    Ubuntu usually just works. I don't have access to a Ubuntu 12.04 today, but I'll see what I can do tomorrow.

  • I am running Ubuntu 12.04 32 bit. Yes, libjpeg62 is installed.

    I previously had CCS 5.02 working, so unless there are new lib requirements I should be OK.

    My troubles started when I upgraded to 5.03

    I also tried a clean install of 5.03 but encountered the same issue.

    Steve

  • Steve

    I'm not seeing any issues on Ubuntu 12.04. It's possible I have a package installed that you don't . This is on a virtualbox VM and I needed to to apply various updates and packages to allow "virtualbox additions" to be installed.

    Here are two approaches that might provide some hints.  First, if you cd to <installdir>/ccsv5/ccs_base, and run:

        find . -name '*.so' -exec ldd {} \; |grep not|sort|uniq

    you will get a list of libraries that are not found. The list will include some items that are actually there because the LD_LIBRARY_PATH has not been set yet, but it may still be useful.  On my working 12.04 install, I get

        libhistory.so.4 => not found
        libjvm.so => not found
        libreadline.so.4 => not found
        libti_xpcom.so => not found

    A second possibility is to generate an strace log and try to derive from there what is not being found. I find the data isn't easy to sort through though. To generate the log, cd to <installdir>/ccsv5/eclipse and run  strace -f -o /tmp/tmp.txt -e trace=open ./ccstudio .  Try to start a debug session, and then exit CCS. Search for the error message string in tmp.txt, and then go backwards from there.




  • AndyW said:

    Here are two approaches that might provide some hints.  First, if you cd to <installdir>/ccsv5/ccs_base, and run:

        find . -name '*.so' -exec ldd {} \; |grep not|sort|uniq

    you will get a list of libraries that are not found. The list will include some items that are actually there because the LD_LIBRARY_PATH has not been set yet, but it may still be useful.  On my working 12.04 install, I get

        libhistory.so.4 => not found
        libjvm.so => not found
        libreadline.so.4 => not found
        libti_xpcom.so => not found

    I get the same results.

    AndyW said:

    A second possibility is to generate an strace log and try to derive from there what is not being found. I find the data isn't easy to sort through though. To generate the log, cd to <installdir>/ccsv5/eclipse and run  strace -f -o /tmp/tmp.txt -e trace=open ./ccstudio .  Try to start a debug session, and then exit CCS. Search for the error message string in tmp.txt, and then go backwards from there.

    I did the above, but don't find the error message string in a search.  I do see many segfault messages though.  Do you see those on your system?

    A tarball of tmp.txt is attached.

    6787.tmp.txt.tar.gz

    Thanks for helping me work through this!
    Steve
  • Andy,

    Have you seen this thread:

    http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/233787.aspx

    It also seems to be about "CORTEX_M4_0: Error initializing emulator: Error loading libdebug.so." with CCS 5.3

    In it a TI employee claims to have reproduced the issue . . .

    Steve

  • Steve,

    In retrospect, I should have started by asking you what device and connection type you are using. If you are using the on-board emulator for a Stellaris board, this is still under development and will be fully released in CCSv5.4. However, it's still possible to get it working if you don't mind be a bit leading edge.  If you send me an email using the email address in my profile, I can provide a .so that should fix the problem.

  • Hello AndyW, I am facing the exact same issue as Steve with the CCSv5.3, would you be kind enough to send me the .so too that fixes this bug to pp144@hw.ac.uk

    Regards,

    Praseen

  • Hi,

    I am facing exactly the same problem, could You send fixed library to me, please?

    hajekj11@fel.cvut.cz

    Thanks a lot!

  • I have the same problem. can you please send .so to me to?

    My email is palenkic.martin@gmail.com

    Best regards.