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.

xds560, Stop mode debug Linux kernel, ccstudio5.5 on ubuntu 12.04 crash

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I followed the this Linux Stop Mode Debug tutorial. But when launching the debug session, ccstudio gave this error message:

IcePick_D: GEL: Encountered a problem loading file: /home/silk/13.10linaro-android-kernel/linaro-kernel/vmlinux Memory allocation exception: std::bad_alloc

I tried to modify the ccstudio.ini file and change xmx to 2048m. This time ccstudio crashes without giving error message. My terminal recorded these:

Loaded FPGA Image: /opt/ti/ccsv5/ccs_base/emulation/drivers/../../common/uscif/./dtc_top.jbc
cannot allocate memory for thread-local data: ABORT

Any help is appreciated! Thanks.

  • Hello,

    What device are you using?

    Chao11 said:
    IcePick_D: GEL: Encountered a problem loading file: /home/silk/13.10linaro-android-kernel/linaro-kernel/vmlinux Memory allocation exception: std::bad_alloc

    You are loading just the symbols, correct?

    Also note that there is a training module for Linux Debug that may also help with more infomation

    http://processors.wiki.ti.com/index.php/CCS_Modules_Library#Linux_Debug

    Thanks

    ki

  • Sorry I forgot to mention the device...It's Pandaboard Rev A2.

    Yes. In the "Debug Configurations"->"Program"->"Load symbols only" is checked.

    I will check the training module. Thanks.

    BTW, the kernel debug had been working under the same configuration (at least I believed so...) one month ago. But this time I can't figure out where it goes wrong.

    Thank you!

  • Hi,

    Chao11 said:

    IcePick_D: GEL: Encountered a problem loading file: /home/silk/13.10linaro-android-kernel/linaro-kernel/vmlinux Memory allocation exception: std::bad_alloc

    I may be off track here, but the error is coming from the IcePick_D and not from the CortexA8 core, therefore could you carefully check which core are you trying to load symbols? More specifically step 5 of the section 4.2.3 of the Linux page you mentioned.

    I have done this mistake a lot of times (trying to load symbols to wrong cores), and therefore I wonder if that is what is happening to you as well.

    Regards,

    Rafael

  • Hi Rafael,

    Thank you. Just to be clear, are you referring to this step? 

    "5. On the drop-down menu Device select the core where the Linux is running.

        In this example the core Texas Instruments XDS100v2 USB Emulator_0/CortxA8 was selected"

    My configuration is "Spectrum Digital XDS560V2 STM USB Emulator/CortexA9_0", I guess it's correct?

  • Yes, that is what I was thinking could be the source of the problem you were having. In this case it seems you are already assigning the symbols to the correct core.

    Sorry about the noise.

    Rafael

  • Hi Rafael,

    I'm still having this problem. Is there anything else I can try? Thank you very much.

  • Hello,

    May I know what version of CCS you are running and how large is your vmlinux file ?

    Also, what version is  the Linux kernel ?

    Regards,

    Raymond

  • Hi Raymond,

    CCS version is 5.5.0.00077. The linux kernel version is 3.2. It's the kernel for linaro android downloaded from here.(http://releases.linaro.org/13.07/android/panda/)

    The vmlinux is around 110MB.

    Thank you!

  • Hi Chao,

    I do not have linaro build environment.

    If you can upload the vmlinux, that will help my investigation a lot.

    Rafael/Ki-Soo,

    Is there a way for Chao to send the huge file to us ?

    Regards,

    Raymond