Download Xilinx XAPP1117 Software Debugging Techniques for Xilinx
Transcript
R Command Conventions Command Conventions This application note will often instruct the user to enter various commands. All commands are displayed as bold. Furthermore, the prompt displayed with the command indicates the environment for which the command is intended is shown in Table 2. Table 2: Command Prompts Executing the Reference System Prompt Environment $ EDK Shell (gdb) GDB XMD% XMD Executing the Reference System using the Pre-Built Bitstream and the Compiled Software Applications To execute the system using files inside the ready_for_download/ directory in the project root directory, follow these steps: 1. Change directories to the ready_for_download directory. 2. Use iMPACT to download the bitstream by using the following: $ impact -batch xapp1117.cmd 3. Invoke XMD and connect to the processor by the following command: $ xmd -opt xapp1117.opt 4. Download the executables by using the following command: XMD% dow <executable name>.elf Executing the Reference System from XPS To execute the system using XPS, follow these steps: 1. Open system.xmp in XPS. 2. Select Hardware → Generate Bitstream to generate a bitstream for the system. 3. Download the bitstream to the board with Device Configuration→Download Bitstream. 4. Launch XMD with Debug → Launch XMD... 5. Download the executables by the following XMD command: XMD% dow <executable name>.elf Console Connection Connect a serial cable to the RS232 port on the ML507. The terminal application, such as HyperTerminal, is configured as 9600 BPS, 8 Data Bits, No Parity, 1 Stop Bit, and No Flow Control. XAPP1117 (v1.0) August 21, 2008 www.xilinx.com 3