问题现象:
cmd /C program_flash -f E:\zedboard_demon\PS_PL_LED_SW\PS_PL_LED_SW.sdk\boot_img\boot.mcs
-offset 0 -flash_type qspi-x1-single -fsbl
E:\zedboard_demon\PS_PL_LED_SW\PS_PL_LED_SW.sdk\boot_img\LED_SW_TEST.elf -cable type
xilinx_tcf url TCP:127.0.0.1:3121
****** Xilinx Program Flash
****** Program Flash v2019.1 (64-bit)
**** SW Build 2552052 on Fri May 24 14:49:42 MDT 2019
** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
WARNING: Failed to connect to hw_server at TCP:127.0.0.1:3121
Attempting to launch hw_server at TCP:127.0.0.1:3121
Connected to hw_server @ TCP:127.0.0.1:3121
Available targets and devices:
Target 0 : jsn-Zed-210248585104
Device 0: jsn-Zed-210248585104-4ba00477-0
Retrieving Flash info…
Initialization done, programming the memory
===== mrd->addr=0xF800025C, data=0x00000000 =====
BOOT_MODE REG = 0x00000000
Downloading FSBL…
===== mrd->addr=0xF8000110, data=0x00177EA0 =====
READ: ARM_PLL_CFG (0xF8000110) = 0x00177EA0
===== mrd->addr=0xF8000100, data=0x0001A008 =====
READ: ARM_PLL_CTRL (0xF8000100) = 0x0001A008
===== mrd->addr=0xF8000120, data=0x1F000400 =====
READ: ARM_CLK_CTRL (0xF8000120) = 0x1F000400
===== mrd->addr=0xF8000118, data=0x00177EA0 =====
READ: IO_PLL_CFG (0xF8000118) = 0x00177EA0
===== mrd->addr=0xF8000108, data=0x0001A008 =====
READ: IO_PLL_CTRL (0xF8000108) = 0x0001A008
Problem in Initializing Hardware
Flash programming initialization failed.
ERROR: Flash Operation Failed
固化到flash中,首先要在硬件上把模式设置成jtag模式,因为你是在往里面烧东西,将mio2-mio6全部跳线到地,然后再进行下载;下载完了,记得断电,将模式切换到qspi模式,即只有mio5接高电平。然后上电重启就ok了。
模式设置:
下载的内容: