element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
MicroZed Hardware Design Write protection on SD/QSPI?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 298 subscribers
  • Views 931 views
  • Users 0 members are here
Related

Write protection on SD/QSPI?

rdb98789
rdb98789 over 1 year ago

I'd like to know if it is possible to make the Microzed "Read Only" in terms of non-volatile memory. That is, the Zynq can still boot from QSPI/SD, but no way for the application SW/FW to write to non-volatile memory. Ideally we'd only allow programming of the QSPI through JTAG. Open to out-of-the-box thinking like board mods.

  • Sign in to reply
  • Cancel
  • dyessgg
    dyessgg over 1 year ago

    Several questions:

    1. Linux or bare metal.

    If Linux:

    Where is your root (/) directory?  If it is RAM then there *MIGHT* be a device tree entry for the QSPI that tells the driver to do read only accesses.  If not, patch the kernel driver for the QSPI to not allow write access.

    You didn't mention if the OS should be able to write to the QPSI..

    Please expand on your actual requirements.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rdb98789
    rdb98789 over 1 year ago in reply to dyessgg

    Bare metal, no OS. The way I envision it is: Bootloader is programmed into QSPI via JTAG, then we enable write-protect so nothing can ever write to QSPI again. We want the bootloader to perform network booting (both PL firmware and ARM application), so there is a concern that someone may boot with an ARM application that can still access QSPI.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dyessgg
    dyessgg over 1 year ago in reply to rdb98789

    A quick glance at the schematics shows the QSPI part does not have a write protect pin so that approach is out.

    QSPI doesn't have a "write" signal.  It's part of the protocol.

    I don't have time to check the reference manual for the Zynq 7000 right now.  If I were you, I'd check that document and read the QSPI controller section to see if it has an input to write protect the device.  If it does, tthis might be the easiest path and might not require  a board mod.

    There *MIGHT* be another way.  Check if that part uses one of the upper SPI data lines as a write protect pin when in SPI or DSPI modes.  If it does, you *MIGHT* be able to cut those upper 2 or 3 lines and then jumper the WP pin as needed.  Not something I would want to do.

    If that doesn't work, you might try to find a QSPI device that has a write protect pin and create a small mezzanine bard to solder down to the MicroZED with the new part and a WP jumper on it.  Might not work.

    Last and least, lay out your own MicroZED board with a different part that has a write protect pin.

    Best of luck to you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rdb98789
    rdb98789 over 1 year ago in reply to dyessgg

    Thanks for the feedback, and the creative idea

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wolfgangfriedrich
    wolfgangfriedrich over 1 year ago

    I am looking at the rev H of the MicroZed board. It has an Infineon S25FL128SAGB QSPI chip.

    The datasheet shows several registers that might be useful for write protection. Chapter 10 talks about data protection. Those are all QSPI commands that set protection bits, which need to be performed after programming. I did not read into details about removing the protection, but this would make it much harder for regular applications to write into the QSPI.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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