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: 
1,086 Views
Registered: ‎01-05-2018

Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Hi all,


I am facing issue in QSPI booting on zynq Z045 with flash of 128 MB(S25FL128S Cypress). Here are the steps I followed to do QSPI booting on zynq Z045.

 

A) At first, I created zynq fsbl application project in the PS side of zynq using SDK of Vivado 2016.3 version with following RTL settings :

   -> QSPI flash enabled with single ss 4-bit IO mode with MIO 1-6 enable.
   -> Speed of all MIO kept as "FAST" with all pull up "disable".
   -> Feedback clock enable with MIO 8.

 

B) Then I enabled FSBL print setting in SDK using macro "FSBL_DEBUG_INFO" also using SDK tool settings as follows:

->C/C++ build setting->Tool setting-> Symbol-> add this : FSBL_DEBUG_INFO

C) Then I created "hello world" project as a user application.

D) Then for creating BOOT.bin file I followed the following procedure as :

1) Given a path to create boot.bin file and OUTPUT.bif file with setting of output format as BIN.

2) In Xilinix tool -> Create Boot Image, I added following files with the sequence as follows.
   -> zynq fsbl elf file.
   -> bit file of QSPI RTL project.
   -> hello world elf file.

 

E) Then I dumped the BOOT.bin file into QSPI flash with QSPI single mode setting using JTAG programmer.

 

F) Offset given while dumping the BOOT.bin file as : 0x00

 

G) Now after dumping BOOT.bin file into flash , MIO settings is done to test QSPI booting as per zynq TRM is as follows :

Stutus of MIO 5 put High. 
Stutus of MIO 4  put Low. 
Stutus of MIO 3  put Low. 
Stutus of MIO 2  put Low .


After following the above steps, we are still facing the following issue in booting.

-> Config done LED is not coming
-> Not a single FSBL print coming on console.
->User application of Hello world also not coming on console.

 

Observations:

 

1) We probe on flash lines while dumping BOOT.bin file into qspi flash, and observed all clock cycles with data is coming properly.

 

2) Secondly we probe on flash lines while booting , but only arround 200 clock cycles came, then communication stopped.

 

So please suggest me the solution over this problem as earliest.


-regards
Prashant Shinde

0 Kudos
13 Replies
Moderator
Moderator
1,005 Views
Registered: ‎03-19-2014

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

What is the setting of the QSPI reference clock in Vivado?   What is your desired QSPI device clock frequency?   Are you getting any output on the UART from the FSBL during QSPI boot?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
997 Views
Registered: ‎01-05-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Hi,

 

The setting of the QSPI reference clock in Vivado :200 MHZ

 

desired QSPI device clock frequency: We are giving clock prescalper divider with 8 , 16, 64 like wise.

 

No i'm not getting any FSBL prints during booting, although  i enable FSBL print from firmware using FSBL_DEBUG_INFO macro.

 

Also after programming the flash, verification is coming "FAILED".

 

-regards

Prashant Shinde

 

 

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

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

What version of tools are you using?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
979 Views
Registered: ‎01-05-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Hi,

we are using vivado 2016.3 version.

 

-thanks and regards

Prashant

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

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Does your FSBL run from JTAG?   I suspect something on your Vivado DDR configuration is not correct.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
956 Views
Registered: ‎01-05-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

1)  No, My FSBL not running  from JTAG mode For qspi  booting .

For qspi booting ,It must run in qspi mode.

 

For qspi mode,  I set MIO settings as per zynq TRM is as follows :

 

Stutus of MIO 5 put High. 

Stutus of MIO 4  put Low. 

Stutus of MIO 3  put Low. 

Stutus of MIO 2  put Low 

 

 2) In my qspi booting vivado project, DDR configuration is given like as shown in snap shot attached.

So please mention any change we required in that.

ddr_setting_for_qspi_booting.bmp
0 Kudos
Moderator
Moderator
928 Views
Registered: ‎03-19-2014

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Can you run your FSBL when booting from JTAG?   If not, then you need to debug from there.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
918 Views
Registered: ‎01-05-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

1) Yes , i run the FSBL while booting from JTAG mode.

 

I did Debugging with JTAG mode, result's snapshot is attached here.

 

2) While debugging , i used xsct command prompt to know the reboot status register which is getting value as

 

address : 0xF8000258 

value     : 00402000

 

Here 4 indicate : In reboot status register, the status of 21 bit  (PS_SRST_B reset signal) goes low and that of 22 bit (PS_POR_B reset signal) goes high, which is getting correct  like same case of zedboard .

 

And 2000 indicate:  The error code of 0x2000 gives meaning as  

 

: Quad-SPI boot mode. The BootROM detected a x8 parallel device configuration

using x1 mode, but then failed to read the expected header parameters using x8 mode. The BootROM continues with header search using x8 mode, but it was unable to find the Width Detection word using header search within the image search range.

 

Note: We are now using only one qspi flash(128MB ,S25FL128S Cypress ) for booting. 

 

-Thanks and regards

Prashant Shinde

 

 

fsbl_print_in_jtag_mode.bmp
0 Kudos
Moderator
Moderator
904 Views
Registered: ‎03-19-2014

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

The boot log showing 14 partitions is suspicious.   What is in your .bif?   

 

Is this the wake-up of a new design?    I still suspect your DDR design.   Can you run our DDR test applications?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
670 Views
Registered: ‎07-18-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

hi , I have the same issue as you. The board(XC7Z020) can't boot from QSPI Flash.

When I used xsct command prompt to know the reboot status register which is getting value as

 

address : 0xF8000258 

value     : 00402000

 

Are you fixed the issue,and How? 

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

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

Start with this AR59174    Provide the information listed in the AR for help debugging your issue.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
647 Views
Registered: ‎10-11-2011

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

The error seems consistent with a single flash programmed as it was a dual parallel.

How did you program the flash?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
626 Views
Registered: ‎07-18-2018

Re: Facing Issue in QSPI booting on zynq Z045 soc with 128MB (S25FL128S Cypress) flash.

I progress the flash with a single flash mode

0 Kudos