Deploying

As soon as you are done with your development, you can deploy it. This means loading it onto a SD card together with a FPGA configuration. Alternatively, you can program it into the on-board QSPI flash device. We strongly recommend using the SD card and reserving the QSPI flash for use with Application Development.

The application and configuration of the FPGA are loaded from the SD card or the flash device upon power-up. Make sure to specify a PL configuration, see 2. below.

Step by Step Instructions

  1. Create a deep project and setup the project configuration as given in Hello World on the Avnet MicroZed Board.
  2. Choose a configuration for the FPGA part to be included into the resulting image.
    .
    Available configurations can be found under Configuration Files. You can use relative or absolute paths.
  3. When creating the run configuration, set the target configuration to boot from flash memory .
  4. Running the configuration will create two flash files. Its location is given by the image file setting in the configuration. They carry the names *.ExternalFlash.mcs and BOOT.bin. Running the configuration will try to open a connection to the target if a programmer is chosen, such as OpenOCD. Make sure to remove the programmer, if you have no programmer present.
  5. Now, you have to choose between using a SD card or the QSPI flash.

Using the SD Card

  1. Copy the above generated file BOOT.bin onto a SD card. The card must be formatted with FAT32.
  2. Set the jumpers on your MicroZed board as follows
    .
    This will boot the device from the SD card.
  3. Cycle the power. The settings of the jumpers will be read only at power-on! Hence, make sure to cycle the supply power after changing the jumper settings. A soft reset (through the JTAG or by pressing the reset button on the board) will reset the board but will not sample the boot mode pins connected to the jumpers.

Using the QSPI Flash

  1. Follow the steps given in Flashing a new Boot Loader. However, instead of loading the configuration file
    -f \\ost.ch\dfs\bsc.sys\public-programme\deep\lib\rsc\BOOTflink2.mcs

    you have to load your own binary image

    -f MyProject\App.ExternalFlash.mcs

    .

  2. Set the jumpers on your MicroZed board as follows
    .
    This will boot the device from the QSPI flash.
  3. Cycle the power. The settings of the jumpers will be read only at power-on! Hence, make sure to cycle the supply power after changing the jumper settings. A soft reset (through the JTAG or by pressing the reset button on the board will reset the board but will not sample the boot mode pins connected to the jumpers.

How Does the System Boot?

  1. reset (by power-on or reset button)
  2. load and run first stage boot loader from flash
    1. configuration of PLL, clocks, DDR
    2. load PL
    3. copy application to DDR memory
    4. handoff to address 0x100000