Commit cc23c39a authored by Pascal Bos's avatar Pascal Bos

Added a flash-qspi memory script.

updated readme
parent fe3cfcbf
Pipeline #2269 failed with stage
in 2 minutes and 19 seconds
......@@ -57,6 +57,6 @@ After checking that we can start:
./Build_boot.sh
4. In the newly created output dir there now is a BOOT.bin. This file can now be flashed in QSPI memory (mt25ql256-qspi-x8-dual_parallel)
4. In the newly created output dir there now is a BOOT.bin. This file can now be flashed in QSPI memory (mt25ql256-qspi-x8-dual_parallel) with this script. This script assumes a local JTAG connection is made with the spec7.
I should maybe make a script for that aswell.
vivado -mode tcl -source ./Flash_QSPI_JTAG.tcl
set device xc7z035_1
set BOOT_file ./output/BOOT.bin
set FSBL_file ./output/zynq_fsbl.elf
exec ls
open_hw_manager
connect_hw_server -allow_non_jtag
open_hw_target
current_hw_device [get_hw_devices $device]
refresh_hw_device -update_hw_probes false [lindex [get_hw_devices $device] 0]
create_hw_cfgmem -hw_device [lindex [get_hw_devices $device] 0] [lindex [get_cfgmem_parts {mt25ql256-qspi-x8-dual_parallel}] 0]
set_property PROGRAM.BLANK_CHECK 0 [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.ERASE 1 [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.CFG_PROGRAM 1 [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.VERIFY 0 [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.CHECKSUM 0 [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.ADDRESS_RANGE {use_file} [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.FILES [list "$BOOT_file"] [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.BIN_OFFSET {0} [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
set_property PROGRAM.ZYNQ_FSBL ${FSBL_file} [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
program_hw_cfgmem -hw_cfgmem [ get_property PROGRAM.HW_CFGMEM [lindex [get_hw_devices $device] 0]]
puts "Finished loading the QPSI memory, DO NOT FORGET TO RESET (POR)!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment