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.

Debugging with CCS5

We observed in the swb-site .wiki.ti.com/index.php/How_to_Run_GDB_on_CCSv5:

1. File named usr/bin/arm-linux-gnueabihf-gdb is missing.

2. The GDB init file .gdbinit is missing.

Can we pass those file?

Best ergards,

Yehuda

  • Have you run the setup.sh script? The .gdbinit file gets generated as a part of that process.

    The arm-linux-gnueabihf-* files are located in the /home/user/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/ directory. Check to ensure that you are pointing CCS to the correct location for it.

  • Dear Tim

    thanks for your answer. I ran the setup.sh on Ubuntu 12.04 and Red-Hat 6.4. In either case: 

    1. The file has not been generated.

    2. Actual folders  structure/organization is not as described in the documentation.

    Best regards,

    Yehdua

     

  • Did it finish successfully? How does your SDK structure differ from the documentation?

  • Dear Tim

    Thanks for the Email. It seems that it works correctly.

    Folders organization is: 

    [Yehuda.Singer@Yehuda-LInux linux-devkit]$ pwd
    /usr/local/bin/ti/ti-sdk-am335x-evm-05.05.00.00/linux-devkit
    [Yehuda.Singer@Yehuda-LInux linux-devkit]$ ls
    arm-arago-linux-gnueabi  etc         lib      README       usr
    bin                      i686-linux  libexec  share        version
    environment-setup        include     mkspecs  site-config
    [Yehuda.Singer@Yehuda-LInux linux-devkit]$ 

    There is not folder sysroot...

    Yehuda

  • The 5.x SDKs use the Arago toolchain whereas SDK 6.0 uses the Linaro toolchain. This is located in a different directory with a different prefix.

    The toolchain you are looking for can be found in /usr/local/bin/ti/ti-sdk-am335x-evm-05.05.00.00/linux-devkit/bin/arm-arago-linux-gnueabi-

  • Dear Tim

    thanks. 

    You are right. Now, I found the path. 

    I do not see the files: gdbinit etc.

    The CCS is directed to this folder

    Yehuda

  • .gdbinit is a hidden file (as denoted by the preceding period) located in the root of the SDK (i.e. /usr/local/bin/ti/ti-sdk-am335x-evm-05.05.00.00/). You need to do a list of ALL files to see it (try ls -la).

  • Dear Tim

    This is the file structure:

    [Yehuda.Singer@Yehuda-LInux ti-sdk-am335x-evm-05.05.00.00]$ pwd
    /usr/local/bin/ti/ti-sdk-am335x-evm-05.05.00.00
    [Yehuda.Singer@Yehuda-LInux ti-sdk-am335x-evm-05.05.00.00]$ ls -la
    total 906952
    drwxrwxrwx.  9 Yehuda.Singer Yehuda.Singer      4096 Jun 16 18:33 .
    dr-xrwxrwx. 15 root          root               4096 Jul 23 10:16 ..
    drwxr-xr-x.  2 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 bin
    drwxr-xr-x.  7 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 board-support
    drwxr-xr-x.  3 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 docs
    drwxr-xr-x.  9 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 example-applications
    drwxr-xr-x.  2 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 filesystem
    -rw-r--r--.  1 Yehuda.Singer Yehuda.Singer 928650626 Jul 27  2012 Graphics_SDK_setuplinux_4_06_00_02.bin
    drwxr-xr-x.  3 Yehuda.Singer Yehuda.Singer      4096 Jul 27  2012 host-tools
    drwxr-xr-x. 11 Yehuda.Singer Yehuda.Singer      4096 Jun 16 18:33 linux-devkit
    -rwxr-xr-x.  1 Yehuda.Singer Yehuda.Singer     12512 Jul 27  2012 Makefile
    -rwxr-xr-x.  1 Yehuda.Singer Yehuda.Singer       761 Jun 16 18:33 Rules.make
    -rwxr-xr-x.  1 Yehuda.Singer Yehuda.Singer       833 Jul 27  2012 setup.sh
    [Yehuda.Singer@Yehuda-LInux ti-sdk-am335x-evm-05.05.00.00]$

    The settup.sh give an error message: Machine not supported.

    Yehuda

  • Sorry, I forgot that you were trying to do this on Red Hat as well. We do all of our testing in Ubuntu (12.04 LTS). There is a way to modify the setup.sh script to work outside of an Ubuntu setup, but as we have not tested it we do not know that everything will function correctly.

    Do you have a need to use Red Hat? If not I suggest sticking with Ubuntu instead.

  • Dear Tim

    Thanks.

    The error message says that it supports Ubuntu 10.04.

    Besides that, we need the Red-Hat for other projects.

    Best regards,

    Yehuda

  • Dr. Singer, Ubuntu 10.04 should be fine as well. We used to use 10.04 as our primary host OS, but moved to 12.04 not too long ago.

  • Dear Tim

    thanks for your answer. 

    Here are my questions

    1. Is there an updated version of this script?

    2. Why the script can not work on Red-Hat? 

    Yehuda

  • Dr. Yehuda Singer said:
    1. Is there an updated version of this script?

    The most up-to-date script is in SDK 6.0, but it does not support other Host OSes.

    Dr. Yehuda Singer said:
    2. Why the script can not work on Red-Hat?
    As I briefly mentioned before the script can be modified to work with other OSes, but we do not support them.

  • Dear Lisa

    I do not see why to restrict the Host Oses. More precisely: Ubuntu and Red-Hat use the same kernel etc.

    all you have to do is to omit redundant checks.

    Best regards,

    Yehuda