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
770 Views
Registered: ‎12-13-2017

How to get information about the size of Quad SPI Flash used sectors

Jump to solution

Hi all, 

 

I'm working with XC7Z020 and Vivado v2016.4 and I've created a boot file to load into a Quad spi Flash with SDK 2016.4.

Now, I'd like to use same flash for the user data using free sectors.

 

The question is: there is a method to understand which sectors can be used for user datas avoiding to overwrite the boot image?

 

After some tests, I've seen that the size of the file loaded into flash (.mcs or .bin) is not indicative for calculate sectors used on flash.

 

Thanks

 

 

0 Kudos
1 Solution

Accepted Solutions
Scholar jg_bds
Scholar
1,086 Views
Registered: ‎02-01-2013

Re: How to get information about the size of Quad SPI Flash used sectors

Jump to solution

@raffaele_fantauzzi:

 

.MCS and .BIN are different storage formats.  .MCS is ASCII-ized data and contains a good amount of overhead, so its size is not a good measure of the size of required storage area.  .BIN, however, is a binary file where one byte of file information translates to one byte of required storage space.  With a Zynq/Zynq+, you generally store the BOOT.BIN file at the lower addresses in your boot device (QSPI, SD, MMC, etc.)  You should be able to gauge how much of your storage media space you need based on the size of the BOOT.BIN file.

 

e.g., If you're using a single 512 Mb QSPI (64 MB) and your BOOT.BIN is 8 MB, then you have 56 MB of available storage for user data.  (This amount is reduced by any necessary files that you also must store in the boot media along with your BOOT.BIN--such as critical files needed by Linux.  That's a bit trickier.) 

 

-Joe G.

 

0 Kudos
2 Replies
Scholar jg_bds
Scholar
1,087 Views
Registered: ‎02-01-2013

Re: How to get information about the size of Quad SPI Flash used sectors

Jump to solution

@raffaele_fantauzzi:

 

.MCS and .BIN are different storage formats.  .MCS is ASCII-ized data and contains a good amount of overhead, so its size is not a good measure of the size of required storage area.  .BIN, however, is a binary file where one byte of file information translates to one byte of required storage space.  With a Zynq/Zynq+, you generally store the BOOT.BIN file at the lower addresses in your boot device (QSPI, SD, MMC, etc.)  You should be able to gauge how much of your storage media space you need based on the size of the BOOT.BIN file.

 

e.g., If you're using a single 512 Mb QSPI (64 MB) and your BOOT.BIN is 8 MB, then you have 56 MB of available storage for user data.  (This amount is reduced by any necessary files that you also must store in the boot media along with your BOOT.BIN--such as critical files needed by Linux.  That's a bit trickier.) 

 

-Joe G.

 

0 Kudos
661 Views
Registered: ‎12-13-2017

Re: How to get information about the size of Quad SPI Flash used sectors

Jump to solution

Hi,

 

thanks for your reply.

I will only use .bin format.

 

Thanks

 

0 Kudos