We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 60803

Zynq-7000 AP SoC - Boot Image requirements when using larger than 16MB QSPI with optional Execute-in-Place (XIP) mode


The BootROM uses the linear mode to access the first 16MB of the QSPI flash to look for the boot image.
There are limitations on where the boot image could be placed if QSPI flash  larger than 16MB is used with the optional Execute-in-Place mode.

The same limitation applies when RSA is used. See (Xilinx Answer 57900) for more detail.
The QSPI linear mode read command (6bh) might not get the correct data for the first 4 bytes.

Looking at the following figure, the incorrect 4 bytes of data are from the upper 16MB of memory.
This is a known behavior of the QSPI controller in linear mode.

In the normal QSPI boot mode (not XIP), the first 4 bytes of BootROM header are not used, and checksum is only calculated from 0x020 to 0x044.

So the incorrect data can be ignored. QSPI will boot without issues.

However, if QSPI boots with XIP, the first word is used to remap the flash linear address space.
The following applies only when RSA Authentication is used on QSPI flashes larger than 16MB in single x2 or x4, dual-stacked x4, and dual-parallel x4 configurations.
The boot image cannot be placed at 0x0 offset in the flash when using a QSPI device larger than 16MB with the optional Execute-in-Place mode.


There are three possible work-arounds for this requirement:
  • Erase the first 32KB of flash and program the boot image at 0x0 + 32KB offset.
    The BootROM will fail booting from 0x0, then will fallback and boot from 0x0 +32KB offset (see UG585 Zynq-7000-TRM for Boot Partition Search).
  • Program the boot image at 0x0 and Duplicate the Image Header at 0x0 + 16MB offset.
    The BootROM will use the Image Header at 0x0 + 16MB offset and will then boot with the boot image programmed at 0x0.
  • Use only single x1 QSPI mode.
NOTE: If XIP is not used, the boot image can be placed at 0x0 even for QSPI  larger than 16MB .
AR# 60803
Date Created 05/23/2014
Last Updated 11/19/2014
Status Active
Type General Article
  • Zynq-7000