element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Using Xilinx Tools Forum How to program QSPI
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 336 subscribers
  • Views 1667 views
  • Users 0 members are here
Related

How to program QSPI

Former Member
Former Member over 12 years ago

In the u201CZedboard_boot_guide_IDS141_1_v1_1.pdfu201D it says that SDK does not work for programming QSPI and it provides a workaround to use u-boot. In the workaround it copies the BOOT.BIN from SD card to DDR3 then to QSPI flash.

In my production design there will be no SD card for cost reduction. Is there a working tool to directly program the boot image to QSPI from laptop?

Thank you.
Zack

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 12 years ago

    Hi zack,

    I believe that you can still reuse some of what is discussed in the "ZedBoard Configuration and Booting Guide v14.1" to download U-Boot via JTAG and execute it.  Once U-Boot is running, I believe that you can also use XMD to download your QSPI image into DDR3 memory via JTAG as well.  Once your QSPI image is in memory, then you can use U-Boot to program the QSPI using the same procedure found in the above document.

    Another option that may be viable with higher volume products is to have your Flash memory parts pre-programmed before they go to your CM.  Avnet actually has one of the largest programming centers in North America and this could save you technician time costs incurred during the programming stage on the factory floor.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 12 years ago

    Hi zack,

    I also was able to download the Xilinx 14.3 tools and using the SDK menu item Xilinx Tools-->Program Flash I was able to successfully program the golden boot MCS image to QSPI using only my Platform II USB cable.  For some reason, this programming option did not work with the on-board USB-JTAG though.

    This could be another option for you to avoid using the SD card in order to program your production design.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 12 years ago

    Hi zack,

    Of course, it is always helpful to actually plug in the on-board USB-JTAG cable in order for it to work properly.  After doing this, I was able to program the QSPI flash properly using the same SDK option and the ZedBoard Digilent USB-JTAG device.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Thank you Kevin. Here's my report back.

    Using a Platform Cable USB model DLC9G, I can program the QSPI from SDK menu Xilinx Tools-->Program Flash , both V14p2 and V14p3.

    By setting the JTAG option to auto detect I do not see plug in the on-board one helps. I actually leave it unplugged.

    The on-board JTAG still can not load flash in V14p3.

    Thanks again.

    -Zack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Hey
    I want programme my zedboard with hte files .bit and .elf I want load this files use the spi flash do have an idea ?
    Best Regards.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Hi tibacou
    At zedboard.org, check the "Zynq Concepts, Tools, and Techniques on ZedBoard" under Projects -> Reference Designs/Tutorials.

    There are examples for all boot options on Zedboard.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    As per title, has this been fixed in vivado so one can program the qspi directly

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Acctually, base on my experience,  From 2013.1, vivado could already succefully program qspi using sdk. I have test vivado 2013.1, 2013.2, 2013.3.

    Please try it.

    But the bad thing is that using sf write command from u-boot, could not succesfully write the image file to qspi.
    I used sf read and md command to verify the image that have been writen into the flash, the result show that the data are completely wrong, I am not sure what wrong with the u-boot.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 11 years ago

    Hi doonny,

    I looked through my notes from 14.1 tools and we were able to read/write/erase the QSPI only from U-boot back then before there was tools support.

    Looking at your sequence of instructions, have you erased the QSPI flash before performing the sf write command?

    Here are my notes from 14.1 days:

    ; Initialize SD card and QSPI
    mmcinfo
    sf probe 0 0 0

    ; Copy boot image from SD card into RAM
    fatload mmc 0 0x8000 BOOT.BIN

    ; Store U-Boot image to QSPI
    sf erase 0 0x100000
    sf write 0x8000 0 0x100000

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Glad to find this thread as I was thinking I was either doing something wrong or there was an issue in general.

    I flash using the Xilinx SDK 14.6 tool and the on-board JTAG; however, the board has to be up and running booted from the SD card as others have observed.

    I'll give it a try with my Platform cable and from Vivado 2013.4

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube