cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anusua
Observer
Observer
230 Views
Registered: ‎06-18-2020

QSPI Flash operation failed

Jump to solution

Hi everyone,

I am using Zynq Ultrascale+ FPGA module (xczu4ev) and I try to program the QSPI Flash using SDK 2019.1. 

I get the following error:

****** Xilinx Program Flash

****** Program Flash v2019.1 (64-bit)

  **** SW Build 2552052 on Fri May 24 14:47:09 MDT 2019

    ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

 

 

Connected to hw_server @ tcp:lynx-dpa:3121

Available targets and devices:

Target 0 : jsn-DLC10-0000183b421201

        Device 0: jsn-DLC10-0000183b421201-04721093-0

 

Retrieving Flash info...

 

Initialization done, programming the memory

===== mrd->addr=0xFF5E0204, data=0x00000222 =====

BOOT_MODE REG = 0x0222

WARNING: [Xicom 50-100] The current boot mode is QSPI32.

If flash programming fails, configure device for JTAG boot mode and try again.

Downloading FSBL...

Running FSBL...

Finished running FSBL.

 

 

U-Boot 2019.01-07026-gae88108-dirty (Mar 22 2019 - 04:47:43 -0600)

 

Model: ZynqMP MINI QSPI

Board: Xilinx ZynqMP

DRAM:  WARNING: Initializing TCM overwrites TCM content

256 KiB

EL Level:       EL3

In:    dcc

Out:   dcc

Err:   dcc

ZynqMP> sf probe 0 0 0

SF: Detected s25fl512s_256k with page size 256 Bytes, erase size 256 KiB, total 64 MiB

ZynqMP> Sector size = 262144.

f probe 0 0 0

Performing Erase Operation...

sf erase 0 C0000

SF: Timeout!

SF: 786432 bytes @ 0x0 Erased: ERROR

ZynqMP> f erase 0 C0000

Erase Operation failed.

INFO: [Xicom 50-44] Elapsed time = 5 sec.

 

ERROR: Flash Operation Failed

 

The board is designed to support the QSPI frequency. The boot.bin used for programming contains PMU.elf, bl31.elf, fsbl.elf, u-boot.elf. 

Unfortunately, I have seen many threads related to this, and each one of them has different solutions. I have programmed using Vivado 2019.1, and has the similar error. The Flash type used is qspi-x1-single, and qspi-x4-single throws errors as "

No SPI flash selected. Please run `sf probe'

ZynqMP> Error while communicating with SPI flash device - No SPI flash selected.

Erase Operation failed.

INFO: [Xicom 50-44] Elapsed time = 0 sec."

ERROR: Flash Operation Failed"

 

Any suggestions on how to resolve the issue? Thanks!

0 Kudos
1 Solution

Accepted Solutions
abommera
Xilinx Employee
Xilinx Employee
155 Views
Registered: ‎10-12-2018

Hi @Anusua ,

Seems you are programming in QSPI boot mode. We recommend flash programming in JTAG boot mode. Hence, can you please change boot mode from QSPI to JTAG and try?

Thanks & Regards
Anil B
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
abommera
Xilinx Employee
Xilinx Employee
156 Views
Registered: ‎10-12-2018

Hi @Anusua ,

Seems you are programming in QSPI boot mode. We recommend flash programming in JTAG boot mode. Hence, can you please change boot mode from QSPI to JTAG and try?

Thanks & Regards
Anil B
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos