My Virtex-4 / Virtex-5 device contains multiple PowerPCs. How do I connect to both PowerPC cores using XMD?
You can also connect to multiple PPCs in multiple FPGAs within the GUI or from the command line as described below.
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.
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.