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
    About the element14 Community
  • 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
MicroZed Hardware Design Tranfer date with USB OTG and store to DDR3 memory
  • 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 Suggested Answer
  • Replies 8 replies
  • Answers 3 answers
  • Subscribers 357 subscribers
  • Views 1097 views
  • Users 0 members are here
Related

Tranfer date with USB OTG and store to DDR3 memory

jcompadre
jcompadre over 7 years ago

Hi all, I am new with the microzed and I have just began using FPGAs. I have gone through some getting started and hello world tutorials.

 

I would like to send some data from my PC (around 500 MB) to the RAM memory in the Microzed. I was planning on using the USB OTG to do the data transfer and then store the data in the DDR3 memory. At the moment I know how to create a QSPI Flash image in order to boot open source Linux.

 

Is there any example of how to use the USB OTG? And any example of how to store data in DDR3?

 

If not, could you give me some advice about how to continue?

 

Thanks

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 7 years ago +2 suggested
    Hello Juan, Tell us more, why do you want to do this - is it an exercise or part of a project. Are you looking for the least hassle solution or to test out some ideas. On a microZed you can do this using…
  • michaelkellett
    michaelkellett over 7 years ago in reply to jcompadre +1
    I can't help you with the USB OTG on the Micro Zed (never used it ). You'll need to trawl the Zed forums and the Xilinx support stuff for that. Google throws up a lot of stuff, including this doc: https…
  • michaelkellett
    0 michaelkellett over 7 years ago

    Hello Juan,

     

    Tell us more, why do you want to do this - is it an exercise or part of a project. Are you looking for  the least hassle solution or to test out some ideas.

     

    On a microZed you can do this using the processor or the FPGA - which do you want to use and why ?

     

    It will be much easier using the processor and linux.

     

    People on E14 have been doing some Xilinx tutorials and blogging about them under the banner "Path to Programmable"

     

    Take a look at their blogs and this will give you an idea of where to look.

     

    There is a lot of material on Xilinx's website.

     

    MK

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago

    Hi Juan,

     

    I can't help much but as Michael mentions, the Path to Programmable blogs may get you going in the right direction, especially how to write data to the DDR via the usual memory map, if you're bare metal, and how to access it via the FPGA portion.

    You've mentioned you're running Linux.. in that case, if you're using the processor to access then is likely you'll need to find or write a driver to write to specific memory. The reason is that Linux takes control of the RAM usually, so it's not under your control. Linux will allocate RAM as required, and never tell you the memory location addresses (since it uses memory management that hides this). It should be possible to configure Linux so it only uses a portion of RAM, leaving the remainder for use by a driver, or for Linux to allocate in advance during startup and then provide the physical address, but this is not specific to Xilinx or Microzed, so linux forums may be able to help too.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jcompadre
    0 jcompadre over 7 years ago in reply to michaelkellett

    Thanks for the answer.

     

    This is part of a project, where I want to send some data to the microZed, process it with the FPGA and then send some data through the I/O ports.

     

    I don´t mind using the processor or the FPGA, if using the processor and Linux is easier, let's do it that way.

     

    I am looking to the "Path to Programmable" tutorials and they are very interesting for begginers like me, but I do not see any example of the USB OTG functionality.

     

    Thanks,

     

    Juan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 7 years ago in reply to jcompadre

    I can't help you with the USB OTG on the Micro Zed (never used it ). You'll need to trawl the Zed forums and the Xilinx support stuff for that.

     

    Google throws up a lot of stuff, including this doc:

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=2ahUKEwjUzcinzvTfAhXETBUIHeEGBuUQFjADegQIAxAC&url=ht…

     

    which says (page 15):

     

    OTG Mode Note that MicroZed does not support OTG mode since a 5-pin USB connector is not used, therefore the ID pin is not available to detect role change. Zynq and the SMSC PHY both support OTG mode with a USB connector that supports it.

     

    so you need to check that out to see if it is still true.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jcompadre
    0 jcompadre over 7 years ago in reply to michaelkellett

    Ok thanks. From what I have read, it is possible using Petalinux, although I cannot find any example. I will read more about this. Thanks for your time

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • saffaa
    0 saffaa over 5 years ago

    Hi Juan,

     

    I want to do the same things as you :

    1. send data through USB OTG

    2. save them in a DDR3

    3. read the data from the DDR

    4. process it on FPGA, then according to this data, I have to change the values of some LVDS signals.

    I hope your project worked well.


    do you have any links that can help me move forward on the project please. ? Thanks for advance


    for me I use the ZC702 Zync evaluation board.

     

    Best regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago in reply to saffaa

    saffaa have you looked at Avnet Boards Training ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • saffaa
    0 saffaa over 5 years ago in reply to clem57

    Hi,

    Thanks for your reply, it's very useful for me the hardware zedboard training.

     

    Best regards,

    • 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