Jump to content
  • 0

GenesysZU5EV board - How to flash through JTAG?


sarvan

Question

Hi,

Hope you're doing good.
We flashed boot image through SD, QSPI successfully following docs.          
Now we are trying to flash boot image through JTAG via microUSB but we are unable to flash image through JTAG.

Steps:
1. Changed boot mode switch to JTAG mode.
2. Connected microUSB cable to hostpc(linux) & target board.
3. Tried to connect jtag via hwserver tool, vivado, petalinux hoping we can able to flash through the software tools.

But we weren't able to flash.

Questions:

Can we able to flash the image through JTAG mode using microUSB cable?
Is that we are missing something?

Please Help!

Thanks,
Saravanan

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hi Sarvan,

So does it not connect to the board when attempting to launch the hardware server?

When you say you connect to the board via microusb, are you connecting to the microusb port, or to the JTAG pins using the JTAG-HS# connector?

Also, do you have anything connected to the FMC connector on the board?

 

-K

Link to comment
Share on other sites

  • 0

Hi Kvass,

            Thanks for your reply.
            We didn't have any HS# connector or FMC connector connected to the board.
            We just used micro USB cable connected to J8 port.

            We tried to connect only micro-USB on J8 port and started hw server. But couldn't able to connect to board.

Thanks,
Sarvanan

Link to comment
Share on other sites

  • 0

Hi Sarvan,

Ok, that clears it up a bit. Check out https://digilent.com/reference/programmable-logic/genesys-zu/reference-manual for the reference manual of the board.

image.png.1054b5b0e98f728781a8db57a41ebb62.png

Try setting the Programming mode to USB on JP3 when using the USB port to upload your program.

The JTAG mode should be used when you have a HS# connector used to connect to the JTAG header. I had an HS1 module that came with my board, so maybe you also have one in the box somewhere?

Good luck,

-K

Link to comment
Share on other sites

  • 0

Hi Kvass,
                    We didn't have HS1 connector with us.
                    We were trying to flash the target via USB cable(microUSB - J8 Port ) with help of xilinx tools (XSDB tool).
                    We are able to load BOOT.BIN binaries into RAM memory via USB cable from XSDB tool.
                    But we our requirement to flash the binary into QSPI flash memory via USB cable using XSDB tool.

                    Any idea on how to flash QSPI memory via USB cable using xilinx tools?

Thanks,
Saravanan

Link to comment
Share on other sites

  • 0

Hi @sarvan,

I'm not familiar with the Petalinux side of things or what version of the Xilinx tools you are using, but if you have a built application in Vitis you can choose the Xilinx dropdown in Vitis and choose the Program Flash option.

I successfully did this in Vitis 2020.1 with the release version of the Hello World demo, https://digilent.com/reference/programmable-logic/genesys-zu/demos/hello-world, with the jumper JP3 on the Genesys ZU 5EV set to JTAG. After the flash was successfully configured (as per the the Vitis Console reporting it as such), I moved the boot mode jumper to QSPI and confirmed the flash was working both by pushing the POR button as well switching the power switch of the 5EV off and back on again.

Let me know if you have any questions.

Thanks,
JColvin

Link to comment
Share on other sites

  • 0
On 10/11/2022 at 4:37 PM, sarvan said:

Hi Kvass,
                    We didn't have HS1 connector with us.
                    We were trying to flash the target via USB cable(microUSB - J8 Port ) with help of xilinx tools (XSDB tool).
                    We are able to load BOOT.BIN binaries into RAM memory via USB cable from XSDB tool.
                    But we our requirement to flash the binary into QSPI flash memory via USB cable using XSDB tool.

                    Any idea on how to flash QSPI memory via USB cable using xilinx tools?

Thanks,
Saravanan

Your best bet is using Vitis and its Program Flash feature from the GUI. You can then record the tcl commands it executes in the XSCT console. Repeating the same commands in the XSCT console should yield the same result.

The command you are looking for is program_flash and is described somewhat in https://www.xilinx.com/support/documents/sw_manuals/xilinx2021_1/ug1400-vitis-embedded.pdf.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...