Perform the following steps to get the .elf file from the AMD Vitis™ software platform.
- Open the Vitis software
platform.
- Go to
. - Add the .xsa file, created using the Vivado tools.
- Select XSA from the
Create a New platform from the
hardware window in New Application project.
- In the New Application
Project window, select the appropriate
CPU,
OS, and
Language to
generate the application (in C language).
- Select Empty Application from the
New Application
Project window.
- After all the options are selected, the following window appears.
- To create/run the design-related application .elf file, open the Explorer window in the Vitis software platform and select project name
and the appropriate application, as shown in the following figure.
- Select the target application and click OK. The following window appears.
Note: Math library is required to compile the driver successfully. Select and add m. - Upon selecting the application source files, the Vitis software platform compiles the application and generates an
.elf file in the Debug
folder in the Explorer
window.
- Download the bitstream into the FPGA by selecting Xilinx Tools and then Program FPGA. The Program FPGA dialog box opens.
- Ensure that the Bitstream field
shows the bitstream file generated by the Tcl script, and click Program.Note: The DONE LED on the board turns green if the programming is successful.
- A terminal program (HyperTerminal or PuTTY) is required for UART communication. Open the program, choose the appropriate port, set the baud rate to 115200, and establish a serial port connection.
- Select and right-click the application v_warp_example_design in the Explorer panel.
- Select (GDB).
- Select Binaries and Qualifier, and click OK.