deep

a Cross Development Platform for Java

User Tools

Site Tools


firstexample:first_example_microzed_deploy

This is an old revision of the document!


Deploying

As soon as you are done with your development, you can deploy it. This means to program it together with a FPGA configuration into the on-board flash device.

The application together with the configuration of the FPGA is loaded upon power-up from the flash device. What must be done using this method?

Step by Step Instructions

  1. Set the jumpers on your MicroZed board as follows
    .
    This will boot the device from the JTAG.
  2. 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.
  3. Create a deep project and setup the project configuration as given in Hello World on the Avnet MicroZed Board.
  4. Choose a configuration for the FPGA part to be included into the resulting image.
    .
    Available configurations can be found under https://wiki.bu.ost.ch/infoportal/embedded_systems/zynq7000/microzed.
  5. When creating the run configuration, set the target configuration to boot from QSPI flash .
  6. Running the configuration will create a flash file. Its location is given by the image file setting in the configuration. It carries the name *.ExternalFlash.mcs.
  7. Switch the driver for your JTAG-HS3 adapter to FTDI, see https://wiki.ntb.ch/infoportal/embedded_systems/jtaghs3/start.
  8. Open a command shell and run the command
    cmd /C C:\Xilinx\SDK\2019.1\bin\program_flash -f MyProject\App.ExternalFlash.mcs -offset 0 -flash_type qspi-x4-single -fsbl D:\Vivado\Booting\Booting.sdk\FSBL\Debug\FSBL.elf -cable type xilinx_tcf url TCP:127.0.0.1:3121 
  9. Switch the driver for the JTAG-HS3 back to Microsoft, see https://wiki.ntb.ch/infoportal/embedded_systems/jtaghs3/start.

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
firstexample/first_example_microzed_deploy.1606840188.txt.gz · Last modified: 2020/12/01 17:29 by ursgraf