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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design Access SD card from PL
  • 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 344 subscribers
  • Views 1715 views
  • Users 0 members are here
Related

Access SD card from PL

Former Member
Former Member over 13 years ago

How can I read and write to the SD card without using Linux? I would like to be able to access the SD card from a standalone application and/or the programmable logic without using Linux.

I couldn't find much information on how to communicate with the SD controller. Any help would be appreciated.

Thanks

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 13 years ago

    dangmug,

    If you reference the Zedboard schematic:

    http://zedboard.org/sites/default/files/documentations/ZedBoard_RevC.1_Schematic_120913_0.pdf

    you will see the interface to the SD-Card is on sheet 6, and the connections to the Zynq IC are on page 10.  The pins come into the PS MIO interface pins, and thus can not be directly interfaced too via the PL portion of the Zynq device.

    You could, however, write some bare-metal code in the ARM to translate requests from the PL portion of Zynq and pull data from and push data to the SD-Card.

    Why is it that you would like to interface to the card not using Linux?/the ARM core(s)?

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

    This is some what similar I was looking at the graphical representation of the how the peripherals are hooked up to the chip. It appears the ram is directly hooked up the processor. Is it all possible to have the pl modify the contents of the ram while the processor run? My gut tells me no after looking over stuff briefly.

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

    Keith Canel,

    Since this is an unrelated question to the OP's, could you post this as a separate forum post?  I would be more than happy to answer it there.

    Thanks.

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

    Keith,

    Thanks for the response. I am OK with doing a bare metal application to transfer the data. It may be preferred as I can do some other simple logic to go along with my pl.

    What I can't figure out is how to read/write using the bare metal application. When I create my own axi core the software makes a simple driver for me that I can use to r/w to it. I don't see anything like that for the SD card. I have the address for it on the bus in my system.xml, but what do I read/write from/to that address in order to actually read and write usable information on the sd card?

    My goal right now is to have pixel data saved on the SD card that I pull off and send to my pl. I want to then send the processed image data back to the SD card as another file.

    We will probably use Linux in our final design, but I want to know how to do this with the bare metal application to help increase my understanding of how it all works. My thought is that this should be pretty simple, I just can't figure it out.

    Thanks,

    Dangmug

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

    Tim. Sorry, I meant to thank you, not Keith in my previous post.

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

    I have the same question : how to find SD Card host driver fore bare metal application ? i do not want to deep into initialisation procedure of SD card
    TimDuffy Did you find an answer?

    If linux does the job, is it easy/possible to extract the sd driver from linux files?

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

    partiot,

    There appears to be a great discussion over on the Xilinx Forums here:

    http://forums.xilinx.com/t5/EDK-and-Platform-Studio/XPS-SPI-Core-and-SD-Card/td-p/173580

    I would not suggest referencing the Linux Drivers, as they will be abstracted slightly to work with many different interfaces.

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

    There is EMIO connected with PL, could PL write/read data from SD card through EMIO directly without PS involving, such as bare-metal mode?

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

    Hi, I want to write data to Sdcard.
    What I want to do is Have input coming from ADC send that data from PL to PS and write it on DRAM. Uptill Now I am done with this. Now i Want to read data written in Dram and Write the read data to SDCARD. Please help

    Thanks

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

    Hi Hammad,
    You can find this tutorial on how to use the SD card on the Zedboard in standalone software platform.
    link : http://embeddedcentric.com/data-logging-using-sd-cards/

    • 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 © 2026 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