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/AM3358: GDB problem with Debian 10

Part Number: AM3358


Tool/software: Code Composer Studio

Dear community,

I have difficult in the functioning of the GDB through CCS.

I have a Ubuntu 18.04 VM on which I have installed: Code Composer Studio 10.1.0.00010, PROCESSOR-SDK-LINUX-AM335X 06_03_00_106.
I have a BeagleBone Black with the latest image, AM3358 Debian 10.3 2020-04-06 4GB SD IoT, installed.
I have followed the Processor SDK Linux guide ( https://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Training:_Hands_on_with_the_Linux_SDK#Transferring_Files_with_RSE ) for build my first CCS project. The project is a simple Hello World project, so I have built it without errors, I have transferred the executable file in the BBB through the Remote System Explorer and finally I have run the executable from a CCS terminal.
However, when I try to debug my executable through the GDB, the GDB buttons remain greyed out :

Anyone have any suggestions to give me to be able to debug with GDB?.

Thanks in advance for any kinds of help.
Regards

  • Hi, 

    Unfortunately TI does not support the debian file system on TI evms.

    One possible thing that may be the cause was is the GDB server was started on the BBB executing the application. 

    Best Regards,

    Schuyler

  • Hi Schuyler,

    Thanks for the answer.

    About your first consideration: “Unfortunately TI does not support the debian file system on TI evms”.

    What do you suggest? Do I have to choose another operating system for the BBB? Do I have to change my target board (In addition to the BBB I also have a TMDSSK3358 AM335x Starter Kit)?.

    Anyway I have noticed that when on BBB is running Debian 9 (gdbserver version: 7.12-6) , the GDB through CSS works fine.
    Unfortunately, when on BBB is running Debian 10 (gdbserver version: 8.2.1-2+b3), the GDB through CSS doesn’t work.
    However, in both the case (Debian 9 and Debian 10), the GDB ( /home/***/ti-processor-sdk-linux-am335x-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gdb) from the terminal works fine regardless of the operating system or gdbserver that are running on the BBB.
    For this reason I suppose that CCS requires some modify to the GDB configuration respect to the TI guide ( https://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Training:_Hands_on_with_the_Linux_SDK#Transferring_Files_with_RSE ).
    I don’t know if there are some setting for GDB configuration that I have to correct in CCS.
    My intention is use GDB from CCS and not from the terminal.

    Thanks in advance for any suggestion.
    Regards