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.

Compiler/TMDXSK437X: How to Debug the Board

Part Number: TMDXSK437X

Tool/software: TI C/C++ Compiler

We have bought a device AM437x Starter Kit. We are going to use the GUI matrix and make some new program. I have several questions for this device. Could somebody helps me?

1) Do we have a method to debug the board? there is a USB cable to connect the device with the host Computer, it seems there is no instructions about how to use it to debug

2) In the program we need to call some 3rd device drivers which are written under general Linux OS. When creating new project by CCS6, do we use CCS project or general C++ project?

      2.1) if using CCS project, should we choose Crosss GCC or Linux GCC?

      2.2) if using general C++ project, do we choose TI V15.12.1.LTS compiler or GNU V4.9.3 (Linaro) compiler? 

3) I noticed there is no g++ compiler in the list, I suppose those GCC or TI V15.12.1.LTS or GNU V4.9.3 compilers are all right to handle the C++ project and 3rd party c++ device driver?

Thank you very much for the help!

  • Hi,

    1) Check the hardware user guide: www.ti.com/.../spruhw8.pdf
    "The AM437x StarterKit EVM supports embedded XDS100V2 USB emulation through the micro-USB AB connector. The EVM also has an optional 20-pin TI CJTAG connector to support the emulation. This CJTAG connector is not installed by default."

    2). If this is a third party linux driver, then I am not sure it will work under bare metal CCS project or RTOS environment. You may need to rewrite the driver in the General CCS project environment in order to use the driver as part of an RTOS application.
    To answer your question you should select General C++ project with GNU compiler, as described here:
    software-dl.ti.com/.../index_examples_demos.html

    3). You are correct the use of compilers provided in CCS should be enough to handle the C++ project.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thank you very much for the reply!

    Generally I have understood the idea, but I am still not sure about some details.

    1) I can connect the device and host computer with USB, is there a method to enter the OS of the device from the host computer? for example: how can I copy a file from host to the device; how can I use GDB (or other tool) to debug the device?; how can I change the IP address of the device?

    2) I cannot use Linux driver under CCS project or RTOS environment, but I can directly use Linux driver with a general C++ project using GNU compiler in environment PROCESSOR-SDK-LINUX-AM437X. Is my understanding correct?

    I have built the environment Ubuntu 12.04. I can install some drivers with "sudo apt-get install". Can I use this type of drivers on the device? if yes, is it possible to enter the device portal remotely and run command "sudo apt-get install"?

    Please forgive me that some questions may sound naive. I am still in the early stage and try to get familiar to the the environment .

    Best regards
    Zong

  • Hi,

    1). About using GDB, you should refer to the available community guides:
    www.kernel.org/.../gdb-kernel-debugging.html
    elinux.org/Debugging_The_Linux_Kernel_Using_Gdb
    source.android.com/.../gdb
    ftp.gnu.org/.../gdb_130.html
    There are many more guides online.

    Regarding changing the IP of the device you can use ifconfig commands (but the IP will default to the original IP at every reboot). The better option is to modify the systemd services to assign a static IP, see these guide:
    e2e.ti.com/.../601881

    2). Yes your understanding is correct, you cannot use CCS to debug linux kernel or linux kernel drivers. TI does not support Ubuntu on AM devices. If you've ported ubuntu on your custom AM437X you can open a serial terminal to your board from the host pc and use the AM437x console to execute the apt-get commands.

    Best Regards,
    Yordan
  • thank you very much for the reply and the materials. I think I understand now. I am in the process of setting up and building up our system on the Starter now. If I have got more questions later on, I will open a new thread. Thank you very much!