用XIlinx 2017.04版本固化程序的时候出现
****** Xilinx Program Flash
****** Program Flash v2017.4 (64-bit)
**** SW Build 2086221 on Fri Dec 15 20:55:39 MST 2017
** Copyright 1986-2017 Xilinx, Inc. All Rights Reserved.
Connecting to hw_server @ TCP:127.0.0.1:3121
Connected to hw_server @ TCP:127.0.0.1:3121
Available targets and devices:
Target 0 : jsn-JTAG-SMT2-210251A08870
Device 0: jsn-JTAG-SMT2-210251A08870-4ba00477-0
Retrieving Flash info...
Initialization done, programming the memory
ERROR: [Xicom 50-56] Error getting stream information for target node .
Problem in Connecting to Target
Flash programming initialization failed.
ERROR: Flash Operation Failed
个人猜测新的flash为空白,所以首先要先用JTAG模式固化
再SDK自带fsbl的main.c文件中添加以下代码:
/*
* Store FSBL run state in Reboot Status Register
*/
MarkFSBLIn();
/*
* Read bootmode register
*/
BootModeRegister = Xil_In32(BOOT_MODE_REG);
BootModeRegister &= BOOT_MODES_MASK;
/* Add this modification: */
BootModeRegister = JTAG_MODE;
然后再次固化,如果出现以下情况,证明有戏哦!!!
****** Xilinx Program Flash
****** Program Flash v2017.4 (64-bit)
**** SW Build 2086221 on Fri Dec 15 20:55:39 MST 2017
** Copyright 1986-2017 Xilinx, Inc. All Rights Reserved.
Connecting to hw_server @ TCP:127.0.0.1:3121
Connected to hw_server @ TCP:127.0.0.1:3121
Available targets and devices:
Target 0 : jsn-JTAG-SMT2-210251A08870
Device 0: jsn-JTAG-SMT2-210251A08870-4ba00477-0
Retrieving Flash info...
Initialization done, programming the memory
BOOT_MODE REG = 0x00000001
WARNING: [Xicom 50-100] The current boot mode is QSPI.
If flash programming fails, configure device for JTAG boot mode and try again.
f probe 0 10000000 0
Performing Erase Operation...
Erase Operation successful.
INFO: [Xicom 50-44] Elapsed time = 94 sec.
Performing Blank Check Operation...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
INFO: [Xicom 50-44] Elapsed time = 36 sec.
Blank Check Operation successful. The part is blank.
Performing Program Operation...
0%...40%...50%...90%...100%
Program Operation successful.
INFO: [Xicom 50-44] Elapsed time = 38 sec.
Performing Verify Operation...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
INFO: [Xicom 50-44] Elapsed time = 37 sec.
Verify Operation successful.
Flash Operation Successful
这时候再将fsbl文件中的main.c那段代码注释掉。重新制作固化程序,然后再次下载。