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 Run program from DDR
  • 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 5 replies
  • Subscribers 339 subscribers
  • Views 555 views
  • Users 0 members are here
Related

Run program from DDR

Former Member
Former Member over 11 years ago

Hi,

When I generate the linker script and load the program in the SRAM, the code runs properly. But when I use the DDR the program can not be run. Does anyone know why this is happening and how I can resolve the issue?

I've seen another topics here, but I didn't understand what exactly I need to do.

Thanks

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

    Hi Amir,

     

    You don't mention which Xilinx tool suite you are using, Vivado or ISE/PlanAhead, or the version but there are reference designs for many of the versions here: http://zedboard.org/design/1521/11 . The Zynq Concepts, Tools and Techniques tutorials all have examples executing out of the DDR memory.

     

    The first thing you might want to check is that you have implemented the DDR interface in your design. An easy way to check is to open the system.xml file in the SDK and see if 'ps7_ddr_0' is listed under the 'Address Map for processor ps7_corexa9_0' and that the listed address range matches the memory you are trying to execute from. If the system.xml file did not open automatically in SDK you can find it under 'hw_plantform_0' in the Project Explorer pane on the left.

    • 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

    Thanks for the reply. I am using PlanAhead 14.4.

    I followed what you have said. I have the 'ps7_ddr_0' and the range is 0x00100000-0x3fffffff.

    Where should I define the memory address to execute program from? (I don't have a linux program. It is just a simple hello world)

    Thanks

    • 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

    In your linker script (lscript.ld under your 'hello_world' > src) you should see something like 'ps7_ddr_0_S_AXI_BASEADDR' under the available memory regions. In the 'Section to Memory Region Mapping' set the 'Memory Region' to this selection from the drop down menu for each of the Sections. Save the lscript.ld file. This should target your application to run in DDR memory.

     

    I would right click on your 'hello world' project in the Project Explorer pane on the left and then click on 'Clean Project' to make sure it picks up your changes. Then, if it does not build automatically (the default setting), right click on 'Hello World' again and click on 'Build Project' to complete the process.

     

    -Gary

    • 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

    Thanks Gary for your reply.

    But I think it is already the address of the DDR for all the section. It still doesn't work

    • 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

    As mentioned before, you could perform the experiments in the Zynq Concepts, Tools and Techniques tutorial for the ZedBoard: http://zedboard.org/design/1521/11 . If there are issues with executing the tutorial example from DDR memory you might want to follow the steps in the ZedBoard Quick Start or Getting Started Guide to run the Linux demo that came installed on the SD Card to verify that the DDR memory is functioning correctly on your board.

     

    -Gary

    • 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