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.

CCSv4 Multiple projects debug

Other Parts Discussed in Thread: OMAP-L138

Hello,

 

I'm developing a system where i have two systems, each one with a C5506 DSP.

I have two JTAGs, one XDS510 and one XDS100.

I've tried having a CCS workspace with both projects and launcing each projects debug session on it's own Target Configuration, but it did not work. When launching the second debug session i got a message saying i had to terminate the first.

In a nutshel, how can i debug two systems simultaneously?

 

Greetings,

Sergio Martins

  • You'll need to create one target configuration file that has both systems. That way if you start a debug session for that target configuration, you will have access to both systems.

    In my example below I have two boards defined in my target config file - one using an XDS100 to talk to a 28035 board and one using an XDS560 to talk to a 2812 EVM. As you can see, I have both boards show up in my debug view after I started a debug session for it:

    How I created the target config was to using the Basic section to select my connection and device for the 28035 (xds100v1 + 28035 Kit) and then I went to the "Advanced" section and the added the second emulator + board using the "New" button (for the connection) and "Add" button (for the device).

    Debugging will be like debugging a multi-core device so I's suggest reading this wiki topic:

    http://tiexpressdsp.com/index.php/Multi-Core_Debug_with_CCS

    Thanks

    ki

  • Hello

     

    Thanks for the reply.

    I've already created the target configuration with both JTAGs, but my problem now is how can i debug two different projects?

    I've read the wiki on multi-core debug, but what i need is to debug two different projects.

    As far as i can tell i will only be able to launch the debug session for one project and then i will need to load the code/symbols for the second one by hand.

    Is this correct?

     

    Greetings,

    Sergio Martins

  • Sergio Martins said:
    As far as i can tell i will only be able to launch the debug session for one project and then i will need to load the code/symbols for the second one by hand.

    You can do that. There is also another way where you can do a "Debug Active Project" for one project tied to one target and then do a "Debug As->Debug Session" for the other project /target. It's a little tricky so I made a video instead of trying to explain it:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/Demos/ccs4-multiproject_debug.htm

    Thanks

    ki

  • That was EXACTLY what i wanted.

     

    Thank you very much and i would also like to leave an extra appreciation for the video that explained the steps.

  •  

    Hi

    Thanks for your directions Ki-Soo, I was able to connect to the XDS100 emulator and the XDS510 emulator on two different evmc6474 boards.

    After I opened both boards, CCSv4 displayed the 6 CPUs for each emulator. I then selected the two I wanted (using the ctrl key) and then right clicked and selected "Set Debug Scope". After doing some tests, I tried to open another CPU (one of the other 12) by clicking on the drop down arrow next to the bug. I got an exception error when I did this. "Unable to lauch debug session for CPU ......".

    7506.ExceptionOnOpeningNewCpu.doc

    I think when choosing the debug scope, the CPU is still open. How do I "unset" the debug scope so that I can select different CPUs?

    Cheers

  • Eddie said:
    I think when choosing the debug scope, the CPU is still open. How do I "unset" the debug scope so that I can select different CPUs?

    Eddie, you are correct. Setting the debug scope is just a visual filter. A debug session is launched for the whole board (for all CPUs). The debug scope just filters out the CPUs from the debug view that you are not interested in. To "unset" the debug scope, you can do the following when in the Debug Perspective: Window->Scope->Reset Debug Scope

    Thanks

    ki

  • Ki,

    I am also trying to run two separate projects, but I have slightly different circumstances.  First, I am only using one connection (XDS100v2) to the board, and I am using the OMAP-L138, trying to run two projects on the ARM and DSP cores simultaneously.  I tried to do this similar to your video, but I get a connection error:

    "C674X_0: CIO: Encountered error while reading command and parameter blocks.  Check your program memory map."

    I was also trying to do it similar to what is described on this wiki, by individually turning on the cores and loading programs onto each one separately, then running them, but I cannot get both of them to run together: http://processors.wiki.ti.com/index.php/GSG:Connecting_to_slave_cores_in_SoC_devices

    I have reviewed the Multi-Core Debug page, but I'm still not having any luck.

    Do you see anything wrong with my methods, and perhaps, a solution?

    Thanks,

    Justin