Manual Setup for Vision Hardware

Before you can use the features in this support package, you must establish communication between the host and the hardware. The Add-On Manager provides an automatic setup process described in Guided Setup for Vision Hardware. Alternatively, to complete the setup process manually, follow these instructions.

The host computer can be a desktop or a laptop. It must have at least one dedicated Gigabit network interface card (NIC) for connecting to the hardware.

The manual setup instructions cover these steps:

  • Configure the network card in the host machine.

  • Copy programming files for the board to an SD card.

  • Configure your board to start up from the SD card.

  • Connect your hardware to the host machine.

  • Verify the connection between host and hardware.

Notes

  • These instructions assume that you are installing on only one computer and have only one NIC.

  • These instructions assume that you have already installed the support package. See Install Support Package for Xilinx Zynq-Based Hardware.

  • You can use a USB3 to Gigabit Ethernet LAN adapter instead of a NIC. The instructions are the same.

  • Do not connect or turn on the board until you are prompted.

  • Turn off antivirus, firewall, or other port blocking software, because it can interfere with communication to the Zynq® hardware.

  • If you require administrator privileges to complete the setup, start MATLAB® using Run as administrator.

  • If you are running a utility software to configure the network (typically done on laptops), exit or uninstall the software. This type of software can interfere with the network configuration required to perform this setup.

Step 1. Gather Required Hardware

Confirm that you have the hardware required to complete the setup and configuration process.

  • Zynq development board (PicoZed™7030, ZC702, ZC706, or ZedBoard™)

  • HDMI I/O card (FMC-HDMI-CAM or FMC IMAGEON)

  • Dedicated Gigabit network card or a USB 3.0-Gigabit Ethernet adapter dongle

  • SD card and SD card reader

  • Ethernet cable

Note

If you do not use an Ethernet adapter that supports full Gigabit Ethernet throughput, captured video frames can be corrupted.

Step 2. Configure Network Card on Host Computer

Configure the host computer so that it can communicate with the hardware.

  • This setup requires a dedicated Gigabit Ethernet card for the hardware.

  • If you also want simultaneous internet access, and you do not have a wireless connection, your host computer requires a second Ethernet card.

  • Use an Ethernet cable for connecting your hardware to the Ethernet card on your host computer.

  • Configure the Ethernet card for your operating system, either Configure Windows or Configure Linux.

Configure Windows

Configure the Ethernet card for your hardware.

  1. From the Start menu, click Control Panel.

  2. Set View by to Category.

  3. Click Network and Internet.

  4. Click Network and Sharing Center.

  5. On the left pane, click Change adapter settings.

  6. Right-click the local area network connection that is connected to the hardware and select Properties.

    • If an unused NIC is available, the local area connection appears as Unidentified network.

    • If you plan to repurpose your NIC, select the local area connection that you plan to use for the hardware.

    • If you have only one NIC, check if you can connect wirelessly to the existing local area network. If you can, you can use the NIC for the hardware.

    • You can use a pluggable USB to Gigabit Ethernet LAN adapter instead of a NIC. The instructions are the same.

  7. On the Networking tab of the Properties dialog box, clear all options except Internet Protocol Version 4 (TCP/IPv4). Other services can cause intermittent connection problems with the hardware.

  8. Double-click Internet Protocol Version 4 (TCP/IPv4).

  9. On the General tab, select Use the following IP Address.

  10. Determine the correct address for your board. The default IP address of the board is 192.168.4.2. The subnet, that is, the first three octets of the host IP address must match the IP address of the board.

  11. Set the host IP address, for example 192.168.4.1.

  12. Leave the subnet mask set to the default value of 255.255.255.0.

  13. Click OK.

  14. When you finish configuring the IP address, go to Step 3. Load Firmware. Download the FPGA image before you attempt to communicate with the hardware.

Configure Linux

Set the host Ethernet interface so that it has a static IP address. This configuration enables communication with the development board.

  1. Determine the correct address for your board. The default IP address of the board is 192.168.4.2. The subnet, that is, the first three octets of the host IP address must match the IP address of the board.

  2. Set the host IP address, for example 192.168.4.1, and set the subnet mask to 255.255.255.0. Set these values using the ifconfig command.

    % sudo ifconfig ethZ 192.168.4.1 netmask 255.255.255.0 up

    In this syntax, ethZ is the name of the host Ethernet port. This name is usually eth0, eth1, and so on.

    To use the sudo command, you might need to enter a password.

  3. To confirm the changes, enter the following command in the shell:

    %ifconfig ethZ

    ethZ is the name of the host Ethernet port you set in the previous step.

Step 3. Load Firmware

Insert a 4 GB or larger SD memory card into the memory card reader on the host computer. The card must be formatted with a FAT32 file system. If your SD card is already configured with an appropriate image for the hardware, skip this step.

Note

Unlock the SD card before downloading the firmware image to the card. Keep the card unlocked while the card is in the Zynq board card reader.

  1. Insert the SD card into the SD card reader on the host computer.

  2. At the MATLAB command prompt, use these commands to write the card image. This example shows a Linux®path. If you are using Windows®, replace the path of the drive with the letter of the card slot, such as E:.

    spkgRootDir = visionzynq.internal.getSpPkgRootDir;
    boardType = 'ZC706'; % or 'Zedboard' or 'ZC702'
    projName = ['visionzynq-',lower(boardType),'-hdmicam'];
    
    sdcardDir = fullfile(spkgRootDir,'bin','target','sdcard',projName);
    drive = '/dev/sda' ;  % specify the drive path
    
    copyfile(sdcardDir,drive,'f');
    

Step 4. Set Jumper Switches On Development Boards

Configure the jumpers on the Zynq development board so that you can use it as a peripheral device. These jumper settings make it so that the board starts up from the SD card. Make sure that the board is turned off.

The jumper settings are different for each board.

Set Jumpers on PicoZed7030

SW1 Switch Positions

SwitchSwitch Position
5Right
6Right

Set Jumpers on ZC702

JTAG Select Jumper Positions

SwitchSwitch Position
TopLeft
BottomRight

SW10 Jumper Positions

SwitchSwitch Position
1Down
2Down
3Up
4Up
5Down

Set Jumpers on ZC706

SW11 Jumper Positions

SwitchSwitch Position
1Down
2Down
3Up
4Up
5Down

Pins

Set the pins as shown in the image. The pins are located near the Ethernet LEDs.

Set Jumpers on ZedBoard

Jumper Positions

SwitchSwitch Position
1Down
2Up
3Up
4Down
5Down

Step 5. Connect Hardware

Follow these instructions for connecting the hardware. These steps are labeled in the pictures of each board.

  1. Remove the SD memory card from the host computer and insert it into the Zynq board.

  2. Plug the HDMI FMC card into the FMC connector on the Zynq board.

  3. Connect an Ethernet cable to the board. Connect the other end of the Ethernet cable to the network card selected previously.

  4. Connect the power cable.

  5. Connect the HDMI cable between the HDMI-Out port on the Zynq board and a monitor.

  6. Connect the HDMI cable between the HDMI-In port on the Zynq board and an HD camera.

  7. Turn on the power.

  8. Wait until you see the LEDs indicating the readiness of the hardware. Then, wait an additional 20 s for the board to boot its operating system and set up communication with the host machine.

    BoardReady Lights

    PicoZed7030 (on carrier board, near JA1 PMOD connector)

    FPGA DONE (Blue, steady)

    ZC702 (near cell battery)DONE (DS3) (Green, steady)
    ZC706 (near power switch)DONE (Green, steady)

    ZedBoard (near DIP switches)

    LD12-DONE (Blue, steady)

    If the LEDs do not light up as indicated after one minute, press the reset switch and restart the board.

Connect PicoZed7030 Hardware

Connect ZC702 Hardware

Connect ZC706 Hardware

Connect ZedBoard Hardware

Note

You can connect optional peripherals now, such as a monitor or keyboard.

Step 6. Verify Setup

To test the hardware connection, create a visionzynq object. Specify the board you have installed as an input argument. You can optionally specify an IP address that the object assigns to the board. By default, the board is assigned '192.168.4.2'. If the object cannot connect to the board, it returns an error.

visionzynq('ZC706 FMC-HDMI-CAM')

If the configuration is correct and the connection is successful, you see a status message for the visionzynq object.

ans = 


visionzynq

   Device Information:
       DeviceName: 'ZC706 FMC-HDMI-CAM'
    DeviceAddress: '192.168.4.2'
         Username: 'root'
         Password: 'root'
             Port: 22

If the connection is not successful, the most common reasons are that the board is not connected properly or it is not turned on. Check the cable connections and power switch and try again.

To confirm you can capture video data into Simulink®, run the Getting Started with Vision Zynq Hardware example. Observe the video display in Simulink, and optionally on an HDMI output connected to the board.

Step 7. Setup for ARM Targeting

If you plan to generate embedded code for the processor on the Zynq device, you must register the root directory for cross-compilation and create a connection to the Zynq board. Follow the additional steps in Setup for ARM Targeting.

Related Examples

More About