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.

XDS 5600 Stop Mode Debug bad_alloc while loading vmlinux

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I'm trying to get Code Composer to single step through the kernel code. Following error is encountered.

Load Program Error:

Encountered a problem loading vmlinux.

Memory allocation error: std::bad_alloc

My system configuration is as follows:

Target: DRA7xx

Target OS: Linux 3.12

Code composer is running on Desktop running 3.14-0.bpo.1-amd64 in a 32 bit chroot.

Code composer version: Version: 5.5.0.00077

I've followed instructions on the TI wiki:

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

for Stop mode Debug.

Looking at another similar post, I've tried to increase the size of memory used by jvm to 2048M in ccstudio.ini. But it has not helped me.

The vmlinux that I'm trying to load as "symbols only" is:

-rwxr-xr-x 1 root root 102064962 Aug 21 14:07 vmlinux

If I do not specify the vmlinux to load, I can single step through the assembly code.

Any help in resolving this error would be highly appreciated.

Thanks.

Makarand.

  • Hi Makarand,

    I believe there is a related issue reported. Do you have a TI FAE? I'm wondering if it is the same issue.

    Anway, I'm not sure what the issue may be. If the error occurs when trying to load symbols, I'd like to get your vmlinux file. Can you send me a friend request and then we can find a way for me to get the file. Or if you have a TI FAE, I can work through the FAE.

    Thansk

    ki

  • Hi Ki,

    Yes, we do have a TI FAE. I'll talk to him, the next time he comes over.

    Another update: I tried the vmlinux on a windows installation of CCS. The windows machine gave the following  msg:

    "Dwarf information is corrupted:"

    Following post mentions that this problem is resolved in V6

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/343648.aspx

    and I am using 5.5. I do not have the Gel files for V6 for DRA7xx so cannot use v6.

    I can give you the vmlinux. Not sure how to do that. It's 97MB so cannot send by email.

    Any inputs will be appreciated.

    Warm Rgds,

    Makarand.

  • Makarand Pradhan said:

    Another update: I tried the vmlinux on a windows installation of CCS. The windows machine gave the following  msg:

    "Dwarf information is corrupted:"

    Following post mentions that this problem is resolved in V6

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/343648.aspx

    and I am using 5.5. I do not have the Gel files for V6 for DRA7xx so cannot use v6.


    Any GEL files that worked work v5 will work with v6. So I would recommend moving to v6.

    Makarand Pradhan said:
    I can give you the vmlinux. Not sure how to do that. It's 97MB so cannot send by email.

    Contact your FAE (to contact me). I can work with the FAE to get the file from you (The FAE will be aware of various FTP resources we can use).

    Thanks

    ki

  • Hello!
    I think I know the solution.
    According to gcc.gnu.org/.../changes.html "DWARF4 is now the default when generating DWARF debug information". If you force gcc to use DWARF3 it works fine on CCSv5.
    I'm actually didn't test this on Linux kernel, but it works on U-boot. It's can be done by replace -g parametr to -gdwarf-3