UPGRADE YOUR BROWSER

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# 60539

2013.4 SDK and Vivado Hardware Manager: Failed to program QSPI flashes with 256K and 512K erase sector size

Description

According to the datasheet of S25FL512S, the erase sector is 256K.

So from the below error message, 2228224(0x220000) bytes are going to be erased.

But 2228224 is not a multiple of 256k.

This is causing the following error.

zynq-uboot> sf erase 0 220000
SF: 2228224 bytes @ 0x0 Erased: ERROR
Note: If the flashes are in dual parallel configuration, the erase sector size become 512K.

Solution

The work-around is to use u-boot and issue the "sf erase" command with the proper size.

An alternative is to use iMPACT (not Vivado) and set this environmental variable to change the erase sector size:

XIL_CSE_ZYNQ_FLASH_SECTOR_SIZE set to 262144

Note: This issue is scheduled to be fixed in the 2015.3 release. 

From this release on, Vivado will check for the proper erase sector size.

Linked Answer Records

Associated Answer Records

Answer Number Answer Title Version Found Version Resolved
50991 Zynq-7000 AP SoC - What devices are supported for configuration? N/A N/A
AR# 60539
Date Created 05/06/2014
Last Updated 07/16/2015
Status Active
Type Known Issues
Devices
  • Zynq-7000
Tools
  • Vivado Design Suite - 2014.1
IP
  • Embedded Processing