This section contains the steps for setting the environment for setting up Baremetal projects and setting up Linux projects for both Zmod Scope and Zmod AWG. 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.
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.
The ZmodADC1410_Demo_Linux and ZmodDAC1411_Demo_Linux are run from Xilinx SDK.
This step-by-step tutorial roughly follows the How to debug Linux Application in SDK 2019.1 by Xilinx, with some changes due to our Debian 10 rootfs.
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.
1. Download the Source Code
git clone --recursive https://github.com/Digilent/Eclypse-Z7-SW.git -b zmod_adc_dac/master
The directory created when you run this command (“Eclypse-Z7-SW”), will be used as the Xilinx SDK workspace in later steps.
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 Eclypse-Z7 repository (still using the zmod_adc_dac/master branch). Instructions on working with these projects, as well as on how to check them out from source, can be found in the vivado_hw_repositories documentation.
2. Download the SD Card Image
dd if=/path/to/extracted/image/eclypse-debian-buster-armhf-rfs.img of=/dev/(sdX or mmcblkX} && sync
3. Select Xilinx SDK Workspace Location
5. Add SYSROOT Environment Variable in SDK
6. Find the Board IP Address
ip a
7. Establishing Connection to the Board
8. Run the Demo Project
To run the demo application, right-click on Project name → Run as → Launch on Hardware(System Debugger)
1. Download the Source Code
Download the demo project with the below command:
git clone --recursive https://github.com/Digilent/Eclypse-Z7-SW.git -b zmod_adc_dac/master
The directory created when you run this command (“Eclypse-Z7-SW”), will be used as the Xilinx SDK workspace in later steps.
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 Eclypse-Z7 repository (still using the zmod_adc_dac/master branch). Instructions on working with these projects, as well as on how to check them out from source, can be found in the vivado_hw_repositories documentation.
2. Add Xilinx SDK Workspace Location
4. Xilinx SDK Project Explorer
5. Run the Demo Project