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
FPGA
  • Technologies
  • More
FPGA
Forum Arty A7- 35T DDR3 implementation in Vivado 2020.2
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 534 subscribers
  • Views 2514 views
  • Users 0 members are here
Related

Arty A7- 35T DDR3 implementation in Vivado 2020.2

Jonathan101
Jonathan101 over 2 years ago

Hi!

I built a design in Vivado which consists of microblaze [Arty-A7 35T] .

Due to the fact that I have very large workspace [.cpp, .h files], i also use ddr [ MIG] to the design [With configurations as default].

However, after exporting .xsa to Vitis and build my workspace, I got weird errors:

  • getchar() isn't working
  • variables that suddenly change their value without meaning
  • after main() ends, it start from the beginning

i suspect all of this is related to memory.

i configure in lscript.ld file on Vitis heap and stack to be 0x2000

Is there some microblaze or ddr configuration that need to be done in Vivado in order to make Vitis code to work smoothly?

Thanks in advance.

 My design is based on this webpage:  https://medium.com/@caglayandokme/extending-the-memory-limits-of-microblaze-with-an-external-ddr-6c896e75c218

  • Sign in to reply
  • Cancel

Top Replies

  • javagoza
    javagoza over 2 years ago +3
    A few months ago I did a tutorial using the Arty S7 50 following the advice of the Digilent tutorials. I think it can help you: Arty S7 50 First Baremetal Software Project
  • javagoza
    javagoza over 2 years ago in reply to javagoza +2
    This is one of the configurations that worked for me with the linker script generator for this other project that required large arrays Arty S7 50 VGA Thermal Imaging Camera
  • flyingbean
    flyingbean over 2 years ago +1
    You might need to optimize getchar() with Xilinx's APIs. Please check this forum from Xilinx: support.xilinx.com/.../how-to-input-characters-from-console-why-getchar-works-not-properly
  • flyingbean
    flyingbean over 2 years ago

    You might need to optimize getchar() with Xilinx's APIs. Please check this forum from Xilinx:

    support.xilinx.com/.../how-to-input-characters-from-console-why-getchar-works-not-properly

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jonathan101
    Jonathan101 over 2 years ago in reply to flyingbean

    My friend, i ask for application note which explain how to connect microblaze and DDR. I think wrong hw connection is causing me memory problems in the code.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza over 2 years ago

    A few months ago I did a tutorial using the Arty S7 50 following the advice of the Digilent tutorials. I think it can help you:

     Arty S7 50 First Baremetal Software Project 

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza over 2 years ago in reply to javagoza

    This is one of the configurations that worked for me with the linker script generator for this other project that required large arrays

     Arty S7 50 VGA Thermal Imaging Camera 

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jonathan101
    Jonathan101 over 2 years ago in reply to javagoza

    Thanks! This is a good direction. 

    What is the difference between data and code sections? 

    And why you didn't choose to put everything in ddr?

    I have different structure for  linker script:

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza over 2 years ago in reply to Jonathan101

    The code section is used to store the executable code, the instructions and the data section is where is placed initialized and initialized data.

    It started from a design in which only BRAM was used for everything. I ran out of BRAM memory and just changed the data part to DDR and it worked. There is no more reason.

    BRAM has lower latency although I don't think this affects the execution of the code because it is in BRAM. Probably not the best example of what to do but the idea was to show you what can be done.

    The linker script structure that you show is the one that appears in the linker script wizard in the advanced tab.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jonathan101
    Jonathan101 over 2 years ago in reply to javagoza

    I see. The problem is no matter what configuration of memory i am using, my code

    has some unexplained errors, sometimes in differenet locations, in what seems like memory

    allocation errors. In Zynq same code is working fine, so it is must be something with microblaze 

    architecture.

    • 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