cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
463 Views
Registered: ‎07-02-2019

Reading QSPI FLASH memory from ZC706 board

I am trying to readback the contents of the QSPI Flash memory on some ZC706 boards that are already programmed to assess if they are identical.  I have tried several suggestions without success.  I am using Vivado 2018.2 TCL scripts to try and do this.  I have seen the post "Readback using Vivado 2014.2" and looked at the TCL script attached (KC705_P30T_Readback_MCS (2).tcl) but this is specific to the KC705 board.  Please could someone provide a similar response but specific to the ZC706 board?  Thank you.

0 Kudos
2 Replies
Highlighted
Visitor
Visitor
376 Views
Registered: ‎07-02-2019

I have tried the following which nearly works...

Booted from FLASH and then ran the following tcl script:

set readBackFile "readBackFile.bin"

# Prepare hardware access by programming FPGA with a stub that can readback the FLASH
open_hw
connect_hw_server -url localhost:3121
current_hw_target [get_hw_targets */xilinx_tcf/Digilent/*]
set_property PARAM.FREQUENCY 15000000 [get_hw_targets */xilinx_tcf/Digilent/*]
open_hw_target
current_hw_device [lindex [get_hw_devices] 1]
refresh_hw_device [lindex [get_hw_devices] 1]

# create object of FLASH memory
create_hw_cfgmem -hw_device [current_hw_device] [lindex [get_cfgmem_parts {s25fl128s-1.8v-qspi-x8-dual_parallel}] 1]

# readback all memory to file and calculate checksum for it
readback_hw_cfgmem -all -format bin -file "$readBackFile" [current_hw_cfgmem]
disconnect_hw_server localhost

 

Unfortuantely this does not work with the following message returned...

Board: Xilinx Zynq
Silicon: v3.1
DRAM: 256 KiB
WARNING: Caches not enabled
Using default environment

In: dcc
Out: dcc
Err: dcc
Zynq> sf probe 0 0 0
SF: Detected s25fl128s_64k with page size 512 Bytes, erase size 128 KiB, total 32 MiB
Zynq> Sector size = 131072.
f probe 0 0 0
Readback Operation is not supported for Zynq.
ERROR: [Labtools 27-3307] Readback CfgMem Error.
ERROR: [Common 17-39] 'readback_hw_cfgmem' failed due to earlier errors.

 

Is this true? Is it not possible to readback the QSPI FLASH memory using Zynq FPGAs?

0 Kudos
Highlighted
Visitor
Visitor
425 Views
Registered: ‎07-02-2019

I have tried the following which partly works...

Booted board from QPSI FLASH then ran the following TCL commands...

Tcl commands:

set readBackFile "readBackFile.bin"

# Prepare hardware access by programming FPGA with a stub that can readback the FLASH
open_hw
connect_hw_server -url localhost:3121
current_hw_target [get_hw_targets */xilinx_tcf/Digilent/*]
set_property PARAM.FREQUENCY 15000000 [get_hw_targets */xilinx_tcf/Digilent/*]
open_hw_target
current_hw_device [lindex [get_hw_devices] 1]
refresh_hw_device [lindex [get_hw_devices] 1]

# create object of FLASH memory
create_hw_cfgmem -hw_device [current_hw_device] [lindex [get_cfgmem_parts {s25fl128s-1.8v-qspi-x8-dual_parallel}] 1]

# readback all memory to file and calculate checksum for it
readback_hw_cfgmem -all -format bin -file "$readBackFile" [current_hw_cfgmem]
disconnect_hw_server localhost

Last part of output was:

Board: Xilinx Zynq
Silicon: v3.1
DRAM: 256 KiB
WARNING: Caches not enabled
Using default environment

In: dcc
Out: dcc
Err: dcc
Zynq> sf probe 0 0 0
SF: Detected s25fl128s_64k with page size 512 Bytes, erase size 128 KiB, total 32 MiB
Zynq> Sector size = 131072.
f probe 0 0 0
Readback Operation is not supported for Zynq.
ERROR: [Labtools 27-3307] Readback CfgMem Error.
ERROR: [Common 17-39] 'readback_hw_cfgmem' failed due to earlier errors.


It appears that readback from QSPI FLASH is not supported for the Zynq family. Surely this can't be true?

0 Kudos