Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmable-logic:eclypse-z7:environment-setup [2022/06/06 16:25] – add baud rate Arthur Brown | programmable-logic:eclypse-z7:environment-setup [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Setting up an Environment for Working with Eclypse and the Zmod Library ====== | ||
| + | ~~NOSEMANTIC~~ | ||
| + | /* nosemantic helps avoid this page being listed on google */ | ||
| + | This section contains the steps for setting the environment for [[# | ||
| + | Depending on the user's needs, one can either use the projects we deliver in their own development process or use the libraries in their projects. If the second case is considered, the user should apply the described settings below to their project, in order to be able to build it. | ||
| + | |||
| + | ==== Import Library and Demo Projects ==== | ||
| + | |||
| + | The steps below need to be followed in order to obtain a complete SDK workspace and to be able to build and run any of the projects, in either Linux or Baremetal platforms. | ||
| + | === Linux Environment Project Setup === | ||
| + | |||
| + | /* For the Linux project demo, the operating system of the PC must be a Linux distribution with Xilinx Vivado 2019.1 installed. \\ */ | ||
| + | The ZmodADC1410_Demo_Linux and ZmodDAC1411_Demo_Linux are run from Xilinx SDK.\\ | ||
| + | This step-by-step tutorial roughly follows the [[https:// | ||
| + | |||
| + | <WRAP center round important 80%> | ||
| + | The following steps are for the **Eclypse Z7** board. | ||
| + | If a Zmod Scope is used, it should be attached to the Eclypse Z7's ZMOD A port. If a Zmod AWG is used, it should be attached to the Eclypse Z7's ZMOD B port. | ||
| + | </ | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **1. Download the Source Code** | ||
| + | * Download the git repository containing the libraries and demos using the below command: | ||
| + | |||
| + | < | ||
| + | |||
| + | The directory created when you run this command (" | ||
| + | |||
| + | **Note:** //If you choose to download the repository as ZIP, the folder// zmodlib //will not be populated and you will have to populate it manually.// | ||
| + | |||
| + | If you want to download the Vivado and PetaLinux projects at the same time, instead clone the '' | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | **2. Download the SD Card Image** | ||
| + | |||
| + | * Download the latest eclypse-debian-buster-armhf-rfs.img_X.X.zip Petalinux image from the Eclypse Z7 git repository [[https:// | ||
| + | * You need to expand the Assets section to see the files. | ||
| + | * Write the image to an SD card: | ||
| + | * Linux: in a terminal window use the following command: < | ||
| + | * Windows: use [[https:// | ||
| + | * Connect the board to your Ethernet network. | ||
| + | * Insert the SD card and boot the board. On first boot, the rootfs partition will resize to fill the SD card then reboot. | ||
| + | * Open a Terminal and connect to the board via its USB-UART interface (labeled PROG). | ||
| + | * Login with username: //eclypse// and password: // | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **3. Select Xilinx SDK Workspace Location** | ||
| + | |||
| + | * The downloaded workspace contains demo applications for both Linux and Baremetal and is intended to be used in place. | ||
| + | * Open Xilinx SDK 2019.1 and assign the workspace location to the project download location. | ||
| + | * If you want to use the demo projects, open the desired Linux or Baremetal demo project. The projects are already configured and ready to be used, except the Linux project where SYSROOT environment variable must be set according to the //Add SYSROOT Environment Variable// section (step 1.5, below). | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **4. Import Projects to Xilinx SDK** | ||
| + | * File -> Import | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | * Select General -> Existing Projects into Workspace -> Next | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | * Select the project download location | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **5. Add SYSROOT Environment Variable in SDK** | ||
| + | |||
| + | * Download the latest eclypse-debian-buster-armhf-sysroot_X.X.tar.xz (**.zip** for Windows ) sysroot from the Eclypse Z7 git repository' | ||
| + | * In the SDK Project Explorer, right-click on the application project you wish to run, then click “C/C++ Build Settings” | ||
| + | * In the “C/C++ Build” group, select the “Environment” category | ||
| + | * Add the SYSROOT variable pointing to the location where eclypse-debian-buster-armhf-sysroot rootfs folder can be found. For example “/ | ||
| + | * Click OK and wait for the Project to build | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **6. Find the Board IP Address** | ||
| + | * In the UART Terminal connected to the board, log in with the username/ | ||
| + | * Run the following command: | ||
| + | < | ||
| + | * Copy the IP address of the board, example: 10.0.0.168 | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **7. Establishing Connection to the Board** | ||
| + | * In the SDK Target Connections panel, open the Linux TCF Agent folder | ||
| + | * Right-click on Linux Agent [default] and click Edit | ||
| + | * Enter the board IP address into the Host section | ||
| + | * Click Test Connection to make sure that SDK can communicate with the TCF-agent on the board | ||
| + | * Click OK | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **8. Run the Demo Project** | ||
| + | |||
| + | To run the demo application, | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | === Baremetal Project Setup === | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **1. Download the Source Code** | ||
| + | |||
| + | Download the demo project with the below command: | ||
| + | |||
| + | < | ||
| + | |||
| + | The directory created when you run this command (" | ||
| + | |||
| + | **Note:** //If you choose to download the repository as ZIP, the folder// zmodlib //will not be populated and you will have to populate it manually.// | ||
| + | |||
| + | If you want to download the Vivado and PetaLinux projects at the same time, instead clone the '' | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **2. Add Xilinx SDK Workspace Location** | ||
| + | |||
| + | * The downloaded workspace contains demo applications for both Linux and Baremetal. | ||
| + | * Open Xilinx SDK 2019.1 and assign the workspace location to the project download location. | ||
| + | * If you want to use the demo projects, open the desired Baremetal demo project. The projects are already configured and ready to be used. | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **3. Import Library to Xilinx SDK** | ||
| + | * File -> Import | ||
| + | |||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | * Select General -> Existing Projects into Workspace -> Next | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | * Select the project download location | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **4. Xilinx SDK Project Explorer** | ||
| + | |||
| + | * The ZmodADC1410_Demo_Linux and ZmodDAC1411_Demo_Linux projects must be closed or deleted from Project Explorer (right-click on project name-> Close Project or Delete) | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | **5. Run the Demo Project** | ||
| + | * Make sure the board is connected to your PC and it is powered on. | ||
| + | * Make sure the jumpers are set accordingly. | ||
| + | * Program the board: Xilinx -> Program FPGA | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | * Run the demo application: | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ---- | ||

