To debug, run, and profile an application, you must create a configuration that captures the settings for executing the application. The configurations for debugging, running, and profiling an application are similar; differences between them are explained below. To profile an application, you should create a Run configuration.
The following sections explain the concepts involved in debug/run configurations.
You can provide an unique name for your configuration and select the application executable to use for execution. Select the appropriate executable for debug, run, and profile configurations. You only need to create the configuration once for the first execution of the application. For subsequent execution of the application, you can select the configuration from the Debug/Run drop-down list in the toolbar.
In the Device Initialization tab, you can select the following tasks, which should be performed before debugging the program.
You can use the built-in console in SDK to capture the STDIO for your application. SDK supports using your serial UART port or JTAG port as your STDIO peripheral that is selectable for your BSP. You should specify the port chosen as STDIO peripheral for your application.
If the hardware board is connected to a remote machine, such as a lab machine, SDK provides a way to debug the program on the remote hardware board. You should, however, have XMD running on this remote machine with a TCP interface for communication. This is done by launching XMD with the -ipcport command line option. You can use this tab to specify the XMD TCP interface to communicate.
Note: You cannot run or profile a program on the remote hardware board.
SDK communicates to the hardware using XMD. SDK provides only the appropriate options based on the processor architecture that the application was built for. Each communication target type is associated with a set of advanced options. Click Advanced XMD Options to access the following options:
SDK provides capability to profile your software application. Use the Profiler tab to specify options for the profiler. Refer to Profile overview for more information.
Debugging a program
Running, debugging, and profiling projects
Profiling a program
Copyright © 1995-2010 Xilinx, Inc. All rights reserved.