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: 
Contributor
Contributor
259 Views
Registered: ‎08-17-2018

Programming Flash via JTAG

Repost from "ACAP and SoC Boot and Configuration" as suggested from a user there.

 

"Attempting to program a custom board that uses an UltraScale+ chip, XCZU2CG-2SFVC784I. Using the Program Flash tool in Xilinx SDK 2017.4, I have attempted to program a Micron MT25QU01G series memory device that is connected via a QSPI Parallel connection.

I have created a very bare-bones firmware that sends a discrete signal periodically to an IC on the board. The bitstream was generated and the .hdf file was exported to Vivado, where I used the template Application Projects to create a FSBL for a MPSoC UltraScale device. A project was created using the 'Hello World' example project. A .bin file was created using the Create Boot Image tool in SDK. The .bif specified the FSBL.elf file, followed by the firmware's .bit file, and ended with the Hello World's .elf file. The .bin file was selected in the Program Flash tool to begin programming the Flash device.

If I use the default Auto-Connect option for the Device selection, on the Program Flash GUI, I receive an error.

****** 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 : jsn1
Target 1 : jsn2
Target 2 : jsn-DLC9LP-0000116f9c8701

ERROR: Unable to detect JTAG cable

If I manually select the device to the local connection to the board, I receive a different error.

****** 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 : jsn1
Target 1 : jsn2
Target 2 : jsn-DLC9LP-0000116f9c8701
	Device 0: jsn-DLC9LP-0000116f9c8701-14711093-0

Retrieving Flash info...

Initialization done, programming the memory
Problem in Connecting to Target
Flash programming initialization failed.

ERROR: Flash Operation Failed

I'm not sure what the next steps from here are, I have looked through quite a few AR's and have not had any promising leads. Any help is appreciated, thank you."

 

Original Post 

0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
188 Views
Registered: ‎01-21-2013

Re: Programming Flash via JTAG

Hi @douglas.yamamoto,

 

Did you check the connection in Vivado HW manager?

It would be good to see how the connection shows up in Vivado.

 

Thanks,
Wendy
Xilinx Technical Support
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
177 Views
Registered: ‎08-17-2018

Re: Programming Flash via JTAG

Hi @wduffy,

I did try the connection in Vivado HW manager, through Vivado 2017.4, last night and ended up with essentially the same results.  The only difference now is that in the TCL console I see that there is an additional error saying that there is a problem running UBoot.

 

Thank you

0 Kudos
Xilinx Employee
Xilinx Employee
141 Views
Registered: ‎01-21-2013

Re: Programming Flash via JTAG

Hi @douglas.yamamoto,

 

Could you post the full details of the errors?

 

Thanks,
Wendy
Xilinx Technical Support
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
114 Views
Registered: ‎08-17-2018

Re: Programming Flash via JTAG

Sorry for the delay, I have been juggling a few different conversations concerning this issue.

****** Xilinx Program Flash
****** Program Flash v2018.1 (64-bit)
  **** SW Build 2188600 on Wed Apr  4 18:40:38 MDT 2018
    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.


Connected to hw_server @ TCP:127.0.0.1:3121
Available targets and devices:
Target 0 : jsn1
Target 1 : jsn2
Target 2 : jsn-DLC9LP-0000116f9c8701
       Device 0: jsn-DLC9LP-0000116f9c8701-14711093-0

Retrieving Flash info...

Initialization done, programming the memory
===== mrd->addr=0xFF5E0204, data=0x00000000 =====
BOOT_MODE REG = 0x0000
Downloading FSBL...
Running FSBL...
Finished running FSBL.
Problem in running uboot
Flash programming initialization failed.

ERROR: Flash Operation Failed
0 Kudos
Contributor
Contributor
99 Views
Registered: ‎08-17-2018

Re: Programming Flash via JTAG

Current debugging efforts point to the DDR configuration being incorrect.  When using the "Debug As" option on the 'Hello World' template project, the progress hangs on 'psu_init'.  I am using a Micron DDR that is rated for a higher speed than my MPSoC's speed grade, could it be that I am not configuring the DDR correctly through the block diagram in Vivado?

 

Thank you.

0 Kudos