码迷,mamicode.com
首页 > 其他好文 > 详细

[原创]FPGA JTAG工具设计(一)

时间:2017-12-27 21:35:22      阅读:516      评论:0      收藏:0      [点我收藏+]

标签:mem   target   配置   ima   diy   config   set   ase   一个   

先来看不同JTAG方案,下载配置QSPI Flash所耗时间

基于FTDI方案,JTAG下载时间为494sec

 1 JTAG chain configuration
 2 --------------------------------------------------
 3 Device   ID Code         IR Length     Part Name
 4   1       4ba00477           4         arm_dap
 5   2       23727093           6         xc7z020
 6 --------------------------------------------------
 7 Enabling extended memory access checks for Zynq.
 8 Writes to reserved memory are not permitted and reads return 0.
 9 To disable this feature, run "debugconfig -memory_access_check disable".
10 --------------------------------------------------
11 CortexA9 Processor Configuration
12 -------------------------------------
13 Version.............................0x00000003
14 User ID.............................0x00000000
15 No of PC Breakpoints................6
16 No of Addr/Data Watchpoints.........4
17 Processor Reset .... DONE
18 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
19 Performing Erase Operation...
20 Erase Operation successful.
21 INFO: [Xicom 50-44] Elapsed time = 34 sec.
22 Performing Program Operation...
23 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%.........................................................................................................................................................................................100%
24 .........Program Operation successful.
25 INFO: [Xicom 50-44] Elapsed time = 494 sec.
26 Flash Operation Successful

 

基于Cypress方案,JTAG下载时间为674sec

 1 JTAG chain configuration
 2 --------------------------------------------------
 3 Device   ID Code         IR Length     Part Name
 4   1       4ba00477           4         arm_dap
 5   2       23727093           6         xc7z020
 6 --------------------------------------------------
 7 Enabling extended memory access checks for Zynq.
 8 Writes to reserved memory are not permitted and reads return 0.
 9 To disable this feature, run "debugconfig -memory_access_check disable".
10 --------------------------------------------------
11 CortexA9 Processor Configuration
12 -------------------------------------
13 Version.............................0x00000003
14 User ID.............................0x00000000
15 No of PC Breakpoints................6
16 No of Addr/Data Watchpoints.........4
17 Processor Reset .... DONE
18 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
19 Performing Erase Operation...
20 Erase Operation successful.
21 INFO: [Xicom 50-44] Elapsed time = 33 sec.
22 Performing Program Operation...
23 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%............................................................................................................................................................................100%
24 ...Program Operation successful.
25 INFO: [Xicom 50-44] Elapsed time = 674 sec.
26 Flash Operation Successful

 

详细的烧写过程:FTDI方案,TotalTime=1455sec,24.25分钟;采用Cypress方案需要42分钟

 1 cmd /C program_flash -f  2 F:\*\bootimage\BOOT.bin  3 -offset 0 -flash_type qspi_single -blank_check -verify -cable type xilinx_tcf url  4 TCP:127.0.0.1:3121  
 5 ****** Xilinx Program Flash
 6 ****** Program Flash v2015.4 (64-bit)
 7   **** SW Build 1412921 on Wed Nov 18 09:43:45 MST 2015
 8     ** Copyright 1986-2015 Xilinx, Inc. All Rights Reserved.
 9 Connecting to hw_server @ TCP:127.0.0.1:3121
10 Connected to hw_server @ TCP:127.0.0.1:3121
11 Available targets and devices:
12 Target 0 : jsn-JTAG-SMT1-210203367162A
13      Device 0: jsn-JTAG-SMT1-210203367162A-4ba00477-0
14 JTAG chain configuration
15 --------------------------------------------------
16 Device   ID Code         IR Length     Part Name
17   1       4ba00477           4         arm_dap
18   2       23727093           6         xc7z020
19 --------------------------------------------------
20 Enabling extended memory access checks for Zynq.
21 Writes to reserved memory are not permitted and reads return 0.
22 To disable this feature, run "debugconfig -memory_access_check disable".
23 --------------------------------------------------
24 CortexA9 Processor Configuration
25 -------------------------------------
26 Version.............................0x00000003
27 User ID.............................0x00000000
28 No of PC Breakpoints................6
29 No of Addr/Data Watchpoints.........4
30 Processor Reset .... DONE
31 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
32 Performing Erase Operation...
33 Erase Operation successful.
34 INFO: [Xicom 50-44] Elapsed time = 33 sec.
35 Performing Blank Check Operation...
36 0%.......................................................................................................................................................................................................10%.......................................................................................................................................................................................................20%.......................................................................................................................................................................................................30%.......................................................................................................................................................................................................40%.......................................................................................................................................................................................................50%.......................................................................................................................................................................................................60%.......................................................................................................................................................................................................70%.......................................................................................................................................................................................................80%.......................................................................................................................................................................................................90%.......................................................................................................................................................................................................100%
37 ..........INFO: [Xicom 50-44] Elapsed time = 524 sec.
38 Blank Check Operation successful. The part is blank.
39 Performing Program Operation...
40 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%.........................................................................................................................................................................................100%
41 .........Program Operation successful.
42 INFO: [Xicom 50-44] Elapsed time = 420 sec.
43 Performing Verify Operation...
44 0%.......................................................................................................................................................................................................10%.......................................................................................................................................................................................................20%.......................................................................................................................................................................................................30%.......................................................................................................................................................................................................40%.......................................................................................................................................................................................................50%.......................................................................................................................................................................................................60%.......................................................................................................................................................................................................70%.......................................................................................................................................................................................................80%.......................................................................................................................................................................................................90%.......................................................................................................................................................................................................100%
45 ..........INFO: [Xicom 50-44] Elapsed time = 511 sec.
46 Verify Operation successful.
47 Flash Operation Successful

 在实际调试过程中,下载速度快也能为开发人员节约时间

基于此,根据相关资料DIY一个JTAG+UART方案,在调试zynq时,很多时候板级并没有UART 外置PHY,JTAG工具链自带UART,也方便FPGA和嵌入式工程师调试单板和系统。

[原创]FPGA JTAG工具设计(一)

标签:mem   target   配置   ima   diy   config   set   ase   一个   

原文地址:https://www.cnblogs.com/ifpga/p/8127583.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!