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: 
Highlighted
Visitor andrei.hres
Visitor
216 Views
Registered: ‎03-18-2019

ZynqMP brick mode

Hi.

For my custom ZynqMP board boot mode is QSPI. I debug remote system update (TFTP loader) for my board. During update process I have got error and now QSPI flash has unpredictable firmware image. Problem is that I can not errase the image (or all flash memory) and I do not have jtag acces to system. XSCT console shows me:

xsct% 
xsct% 
xsct% connect
tcfchan#4
xsct% targets
  1  PS TAP
     2* PMU
     3  PL
  4  DAP (APB AP transaction error, DAP status 10000021. No debug power)
xsct% state
state error: (Code 16 Time 1562677149711 Format {Invalid context})
xsct% 

What can I do in this situation (change boot mode with hw pins is not very easy)?

Thanks.

0 Kudos
13 Replies
Moderator
Moderator
165 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

You can try this in the FSBL you use as the guide file to program the QSPI from SDK (do not change the FSBL in your boot.bin):

Add the following change to in FSBL(xfsbl_initilization.c) and use this FSBL for Flash program in SDK
 
                /**
                * Read Boot Mode register and update the value
                */
                BootMode = XFsbl_In32(CRL_APB_BOOT_MODE_USER) &
                                                CRL_APB_BOOT_MODE_USER_BOOT_MODE_MASK;
 
                //Add this line
                BootMode = XFSBL_JTAG_BOOT_MODE;
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor andrei.hres
Visitor
158 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

Hi. 

May be I can do this but JTAG dose not work. It is not easy to change boot mode pins to JTAG. Boot mode pins set to QSPI mode.

0 Kudos
Moderator
Moderator
152 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

This is a change to the FSBL only, no need to change the boot mode pins on your device.   This will force the guide FSBL to run in JTAG boot mode regardless of boot mode pin settings, which should allow you to reprogram your QSPI device.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor andrei.hres
Visitor
139 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

I can not load FSBL becouse JTAG connection does not work (see my first post). I do not understend this situation completely, but I think there is some wrong boot.bin in QSPI. I think HW bootloader boots something and sends system to state in wich JTAG is off.

0 Kudos
Moderator
Moderator
136 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

If your JTAG is disabled, you are forced to change the boot mode to JTAG to recover that.   There is nothing that can be done remotely if your boot image disables JTAG.   Are you booting a secure image?  By definition, secure boot modes disable JTAG. 

AR 68381 discusses how to create an image that will enable JTAG -- but in your case you will need to change the boot mode to JTAG to regain access to your board.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor andrei.hres
Visitor
127 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

I boot non secure image. But boot process was interrupted.

 

0 Kudos
Moderator
Moderator
124 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

What caused the boot interruption?   Can you reboot and recover from that?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor andrei.hres
Visitor
114 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

May be is method to restore the board without boot mode pins replacement?

0 Kudos
Moderator
Moderator
111 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

It sounds like your QSPI image is sending the board into a bad state.  The only way I know of  to recover from a bad image is to boot in JTAG boot mode.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor andrei.hres
Visitor
114 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

I stopped it by myself (TFTP client on my PC was stopped).

0 Kudos
Visitor andrei.hres
Visitor
110 Views
Registered: ‎03-18-2019

Re: ZynqMP brick mode

What means row in XSCT console

4  DAP (APB AP transaction error

from my first post?

0 Kudos
Moderator
Moderator
75 Views
Registered: ‎03-19-2014

Re: ZynqMP brick mode

You can look here

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Scholar drjohnsmith
Scholar
68 Views
Registered: ‎07-09-2009

Re: ZynqMP brick mode

I had a similar problem,
got around it with a lump of solder across some of the QSPI pins, so the device would not boot,
then JTAG seemed to work,

Did not chase any more,
and its probably a totaly different problem, but just may be ?
0 Kudos