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.

DSP procedure debug

    Hi, everyone! I wonder in PCIe boot mode whether DSP procedure can be debugged step by step. If it can, what is the step? I am looking forward to your answers! 

   Thanks!

  • Aichen Wang,

    A formal welcome to you, to the E2E forums. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    In your case, please go to the Wiki and search for "debug boot" (no quotes) as a first chance to search the Wiki. You can also search from TI.com, which will find things for your on TI.com and the Wiki and this forum.

    Please let us know if you are able to find success in this way.

    Your question is not completely clear as to which procedure you want to debug. My advice is to avoid debugging within the ROM code, but debug by trying different things being written across the PCIe bus and use the emulator to stop the DSP and observe the results of that PCIe activity.

    Regards,
    RandyP

  • RandyP

    Thanks for your advice!

    I did not find useful information in the  TI.com as well as the Wiki.

    I am sorry that I did not make my problem clear. My problem is : In PCIe boot mode, when the host changed the magic_address, the DSP did not excuete the procedure which was send by the host. So I want to know if it is possible to debug in this solution so that I could know why the DSP did not work as expected.

    Looking forward for your answers.

    Regards,

    Wang aichen

  • Wang Aichen,

    I should have mentioned the first time that it will help for you to specify the TI Keystone device you are using, the version number for that device, and the versions of emulator & CCS that you are using.

    Some ideas to consider for debug:

    1. Use JTAG emulation through CCS. You may have to work out some specific sequence of connection and stepping and run/halt (resume/pause?) along with reset to get things working cleanly for debug.

    2. Make sure you have the correct bootmode in the DSP registers. The datasheet tells the address and format of those registers, and they may be available from the Registers Window in the CCS Debug perspective.

    3. Make sure the PCIe host is able to write the program correctly into the DSP's memory. Use a simple program like the one suggested in the Wiki article you found.

    4. Make sure the PCIe host is correctly writing the value to the correct address for the Magic Access.

    Regards,
    RandyP

  • RandyP

    Thanks for your help! I have solved my problem and thanks for your advice!

    Regards

    Wang aichen