UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17581

11.1 EDK - How do I connect to two PPCs using XMD?

Description

My Virtex-4 / Virtex-5 device contains multiple PowerPCs. How do I connect to both PowerPC cores using XMD?

Solution

You can also connect to multiple PPCs in multiple FPGAs within the GUI or from the command line as described below.

GUI

1. Open XPS project for the first FPGA.

2. Select Options -> XMD Debug Options.

3. Deselect "Auto-Discover JTAG Chain Definition".

4. Specify the JTAG Devices in the chain. Select the first FPGA as the debug device. Select "Save".

5. Launch the debugger, which launches XMD and connects to the PPC on the first FPGA.

6. Debug the program using the GDB.

7. Open the XPS project for the second FPGA.

8. Select Options -> XMD Debug Options.

9. Deselect "Auto-Discover JTAG Chain Definition".

10. Specify the JTAG Devices in the chain. Select the second FPGA as the debug device. Select "Save".

11. Launch the debugger, which launches XMD and connects to the PPC on the second FPGA.

12. Debug the program using GDB.

NOTE: XMD opened the GDBServer at port 1235; connect to this port.

Command Line

1. Launch XMD from a shell.

2. Connect to different PPCs using "-debugdevice" option.

3. Use GDB to debug the program.

NOTE: Different GDBServer ports are used to run the program on different processors.

4. Only one processor (or target) is "active" at any time on XMD shell. For example, issuing an XMD command such as "rrd" or "mrd" applies to the active processor. Use the "targets" command to view the list of targets ("*" indicates the active targets).

5. To change between targets at any time, use the "targets <target num>" command.

AR# 17581
Date Created 09/03/2007
Last Updated 12/15/2012
Status Active
Type General Article