2020-11-16 ZYNQ固化过程遇到的问题

用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那段代码注释掉。重新制作固化程序,然后再次下载。

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值