UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
3,635 Views
Registered: ‎12-30-2008

ZC702: ps7_init.tcl takes around 4 minutes to execute via XMD. Any alternate methods for a faster download?

Hi,

     The ps7_init.tcl command takes around 4 minutes to execute via XMD on the ZC702 using the Platform Cable USB II JTAG probe.

 

Is there some other way to speed up the process, other that creating a bootable image and loading it from an sdcard?

 

I notice that in the SDK generated helloworld.c template project, in the file platform.c, you have the following comments:

 

void init_platform()
{
	/*
	 * If you want to run this example outside of SDK,
	 * uncomment the following line and the above ps7_init.h include line.
	 * Make sure that the ps7_init.c and ps7_init.h files are included
	 * along with this example source files for compilation.
	 */
	ps7_init();
	enable_caches();
	init_uart();
}

You can enable the ps7_init() function, after copy pasting the ps7_init.c and ps7_init.h files into you main application project.

 

However, when I try to do that and manually download the application via XMD:

 

fpga -debugdevice devicenr 2 -f system.bit
connect arm hw
rst /* same results if you omit the rst command */
init_user
dow axi_gpio_timer_test_application.elf

 

I get the following error:

 

$ xmd
Xilinx Microprocessor Debugger (XMD) Engine
Xilinx EDK 14.3 Build EDK_P.40xd
Copyright (c) 1995-2012 Xilinx, Inc.  All rights reserved.

XMD% 
XMD% fpga -debugdevice devicenr 2 -f system.bit
Programming Bitstream -- system.bit
Fpga Programming Progress ............10.........20.........30.........40.........50.........60.........70.........80.........90........Done
Successfully downloaded bit file.

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
 1       4ba00477           4        Cortex-A9
 2       03727093           6        XC7Z020

0
XMD% rst
Error: Invalid xmd target: -1
Use "targets" command to get current list of targets or change target
Use "connect mb" command to connect to a MicroBlaze target
Use "connect ppc" command to connect to a PowerPC target
Use "connect arm" command to connect to a ARM Cortex A9 target
XMD% connect arm hw

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
 1       4ba00477           4        Cortex-A9
 2       03727093           6        XC7Z020

CortexA9 Processor Configuration
-------------------------------------
Version.............................0x00000003
User ID.............................0x00000000
No of PC Breakpoints................6
No of Addr/Data Watchpoints.........1

Connected to "arm" target. id = 64
Starting GDB server for "arm" target (id = 64) at TCP port no 1234
XMD% rst
Processor stopped

Target reset successfully

Processor stopped

System reset successfully
XMD% init_user
Info:  Enabling level shifters and clearing fabric port resets
XMD% 
XMD% dow axi_gpio_timer_test_application.elf
Downloading Program -- axi_gpio_timer_test_application.elf
	section, .text: 0x00100000-0x0010272b
	section, .init: 0x0010272c-0x00102743
	section, .fini: 0x00102744-0x0010275b
	section, .rodata: 0x0010275c-0x00102a6b
	section, .data: 0x00102a70-0x00103c63
	section, .eh_frame: 0x00103c64-0x00103c67
	section, .bss: 0x00103c68-0x00103cd3
	section, .mmu_tbl: 0x00103cd4-0x0010bfff
	section, .init_array: 0x0010c000-0x0010c007
	section, .fini_array: 0x0010c008-0x0010c00b
	section, .heap: 0x0010c00c-0x0010e00f
	section, .stack: 0x0010e010-0x00112c0f
ArmJtagDP transaction failed with timeout.
Please reset the system by running rst -debug_sys or
power-cycle the target
ERROR: Failed to download ELF file

 

Elvis Dowson

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,627 Views
Registered: ‎07-30-2007

Re: ZC702: ps7_init.tcl takes around 4 minutes to execute via XMD. Any alternate methods for a faster download?

4 minutes does not sound correct. Perhaps the cable speed is set to be slow? Are you using the latest software (14.3)?

 

You approach fails since your program is mapped to DDR, and the DDR is set up by ps7_init.

 

Alternatively, I think you can dow/run the FSBL elf and then your code.

0 Kudos
3,614 Views
Registered: ‎12-30-2008

Re: ZC702: ps7_init.tcl takes around 4 minutes to execute via XMD. Any alternate methods for a faster download?

Hi Dylan,

                  I'm using ISE 14.3. How can I adjust the Platform Cable USB II speed to a higher setting? I wasn't aware that it was configurable.

 

Elvis Dowson

0 Kudos