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/AM5728: DSP RTOS program debug issue

Part Number: AM5728

Tool/software: Code Composer Studio

Hi experts

My board is idkAM5728. When running rt-linux on A15, DEBUG DSP RTOS program through CCS is not allowed.errors are reported as bellow:

when I remove the SD card from the board,these problem is solved,and I can do the DEBUG smoothly.

But now, I need some function which include ipc module.and my program will stop at VirtQuenec.c. show as follow:

It seems ipc module is powered by host OS. but I didn't run any OS on A15. 

So how can I run rt-linux on A15  and also DEBUG DSP RTOS program through CCS.

Regards 

Yx

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Try the following:
    1. Build your kernel with debug ifno. Execute make tisdk_am57xx-evm_defconfig, then execute make menuconfig and navigate to:
    Kernel Hacking -> Compile-time checks and compiler options -> Compile the kernel with debug info
    2. In CCS setup the u-boot & kernel projects. You can reference the following wiki:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5
    See the Setup a U-Boot Debug Project & Setup Linux Kernel Debug Project sections. NOTE that this is a general guide, in CCS v7 the menu options might be slightly different, but the idea is the same.
    3. Follow the steps provided in the Perform Linux Kernel Debug section of the wiki:
      http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5#Perform_Linux_Kernel_Debug

    Best Regards,
    Yordan

  • Hi, Yordan


    Thank you for your help.
    There are 3 method independently,right?


    Regards
    Yx
  • Hi,

    No, what I've suggested is a sequence. You need to execute the above three steps (in the listed order) to try and debug the linux kernel with CCS.

    Best Regards,
    Yordan
  • Hi

    I've followed your suggestion.but somethings are quite different with expectation.

    I've rebuilt U-Boot & linux kernel.and setup U-Boot & kernel project in CCSv7. That's OK (maybe nothing will cause a problem, I think).

    I met problems when I tried  Perform  Linux Kernel Debug section follow the wiki.

    In the Perform  Linux Kernel Debug section Step 2 to Step 6 is OK,  in Step 7,I got "=>" in the beginning while the wiki is "U-Boot#".

    And I don't see any yellow pause icon is available for suspending A15(Step 8).

    Also, I can't find a file similar to board-am335xevm.c (Step 10,I need a file looked like board-am57xxevm.c,I guess  ).

    Any suggestion? thanks.

     

    Regards

    Yx

  • Hi Yx,

    Debugging the DSP when the ARM is already running Linux is a common issue that we've seen in the past. We have written an app note specifically for this scenario that you may refer to. You can find it at the following link.

    www.ti.com/.../sprac12.pdf

    I'm not too familiar with the Linux side, so if you still need assistance with that I can ask the Linux engineer to comment on this thread, just let me know.

    I hope this helps. Let us know if you have any other questions.
  • Hi Sahin Okur

    Yes, I need.
    I have tried log module to debug my code.But It was usually stuck at diag module.I can't handle setmask and print log well,which will make the system crashed. so I transplanted my code to CCS and hope it help. I need some help to debug my DSP program including IPC module,while A15 is running linux.
    Thank you.

    Best Regards
    Yx
  • Yxxxx said:

    I need some help to debug my DSP program including IPC module,while A15 is running linux.

    The app note I linked goes into detail regarding how to do this. For example, one of the debugging techniques it describes is putting in a while loop to have the program wait there, and then connecting to the core, loading the symbols, and stepping through the code. 

    This is just one technique described in the app note. There are other examples as well such as using traces, ROV, etc. 

  • Hi Sahin Okur

    Yes , I have read it.
    My basic issue is described at the very beginning that A15 can't initialize the context.and DSP held in reset.
    I even can not begin to run the program.
    Yordan has provieded me some suggestion to solve it ,but I met some problem when implementing.
    I still stay at the beginning issue now.

    Regards
    Yx