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# 20989

6.3i XMD - GDB cannot connect to the target board when XMD is connected

Description

Keywords: address, start and end

Urgency: Standard

General Description:
When I connect XMD to debug, the following line is displayed in the DOS window:

"Starting GDB server for "mb" target <id=0> at TCP port 1234"

However, after GDB is opened, ".elf" is selected, and Run >Run is executed from the GDB GUI display, the following error occurs:

"GDB cannot connect to the target board using localhost:1234"

What is causing this error?

Solution

1

First, check whether you have set the GDB target correctly. You can set it via File -> Target Setting.

2

The Windows XP Firewall is probably blocking access to port 1234. You can either turn off the firewall, or use the Control Panel in Windows to Add Port 1234 on My Network Subnet.

To add a port, follow these steps:
1. In the Exceptions tab of the Firewall, click Add Port.
2. Enter the Port Name and Port Number and click OK.
AR# 20989
Date Created 03/15/2005
Last Updated 04/30/2007
Status Archive
Type General Article