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
      •  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 S7: Microblaze hello world - Memory Read Error, Microblaze instruction insert overrun
  • 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
  • State Verified Answer
  • Replies 8 replies
  • Subscribers 558 subscribers
  • Views 5736 views
  • Users 0 members are here
  • Arty S7 50
  • microblaze
Related

Arty S7: Microblaze hello world - Memory Read Error, Microblaze instruction insert overrun

saadtiwana_int
saadtiwana_int over 3 years ago

Hi. 

I have been trying to get up and running a simple "hello world" for microblaze on the Arty S7. I have worked quite a bit with Zynq in the past but almost no experience with Microblaze.

I tried following two different tutorials. 

https://digilent.com/reference/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze/start

https://digilent.com/reference/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze-servers/start (This one is for Arty A7, so i skipped the parts about ethernet)

When i finally try to run/debug the hello world program, I get the following error:

image

I have also tried it on two different  versions of Vivado (2019.1 and 2022.1) and getting the same error.

From the error message, it seems something related to the memory. I didn't change anything on the Memory map or the Linker script. Screenshots  are attached below:

image

image

Can anyone guide me in the right direction here?

Thanks and Regards,
Saad

  • Sign in to reply
  • Cancel

Top Replies

  • Jan Cumps
    Jan Cumps over 3 years ago in reply to javagoza +2
    I'm trying to make a microblaze Spartan-7 design too. Like saadtiwana_int , I've used one before in a Zynq design. My goals will be humble: be able to talk to one FPGA fabric input resource (a button)…
  • javagoza
    javagoza over 3 years ago +1
    Hello, I have made an updated tutorial using Vivado 2021.1 ML Arty S7 50 First Baremetal Software Project - Blog - FPGA - element14 Community Can you post an image of your block design?
  • javagoza
    javagoza over 3 years ago in reply to saadtiwana_int +1 verified
    I see several problems in the mig_7series block Before adding the Microblaze block your block should look like this. It is important no to add the Miroblaze before configuring the mig_7series block…
Parents
  • javagoza
    0 javagoza over 3 years ago

    Hello, I have made an updated tutorial using Vivado 2021.1 ML

    Arty S7 50 First Baremetal Software Project - Blog - FPGA - element14 Community

    Can you post an image of your block design?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • saadtiwana_int
    0 saadtiwana_int over 3 years ago in reply to javagoza

    Hi, Sure my block design looks like this:

    image

    Thanks for sharing link to your tutorial. I will try it out as well later today. It must be something small that I missed out,...just that I haven't found what it is..YET :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • saadtiwana_int
    0 saadtiwana_int over 3 years ago in reply to javagoza

    Hi, Sure my block design looks like this:

    image

    Thanks for sharing link to your tutorial. I will try it out as well later today. It must be something small that I missed out,...just that I haven't found what it is..YET :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • javagoza
    +1 javagoza over 3 years ago in reply to saadtiwana_int

    I see several problems in the mig_7series block

    Before adding the Microblaze block your block should look like this.

    image

    It is important no to add the Miroblaze before configuring the mig_7series block. Follow the steps in the tutorial one after the other.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • saadtiwana_int
    0 saadtiwana_int over 3 years ago in reply to javagoza

    Hi, 

    Thanks a lot for your message. After your earlier message I went through the steps in your tutorial and found a difference in how the MIG was clocked. The tutorials i followed earlier were using the 12Mhz clock feeding into a MMCM to generate the clock for MIG. I think this is what was causing the issue. Instead I removed the 12Mhz clock and the Clocking Wizard and instead fed the 100MHz clock directly to the sys_clk_i of the MIG. I also looped back the ui_addn_clk_0 of the MIG to the sys_clk_i input of the MIG. Now it's all working, infact now it's working on both Vivado 2019.1 and 2022.1.


    One follow up question: The way it is now, the MIG is being fed with a 100MHz clock. What if i wanted to clock the MIG at a higher frequency? For example to increase the RAM throughput in case of an imaging application, for example? Should i add a Clocking Wizard between the 100Mhz input clock and sys_clk_i of MIG or is there a different way to go about it?

    Earlier. when I was trying to fix my original problem, I tried putting a clocking wizard between the 100Mhz input clock and MIG, but I was getting some errors. I need to try this again, as I plan to try a video application with the board.

    Thanks a lot for your help!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • javagoza
    0 javagoza over 3 years ago in reply to saadtiwana_int

    They are very interesting questions. I wish I could answer them. It is my first attempt at FPGA programming, I hope that at the end of the program I will be able to at least understand your question well. Perhaps the reference manual of the Arty S7 will help you to answer your questions. arty-s7_rm.pdf (digilent.com)

    "For clocking, it is recommending that the System clock be set to “Single-ended” and connected directly to the onboard 100MHz oscillator on pin R2.

    The Reference clock should be set to “no buffer” and can be connected to a 200 MHz clock generated from a clocking wizard elsewhere in the design.

    It is also possible to generate the reference clock from the MIG itself by enabling “Select Additional Clocks” and generating a clock with a 5007 ps period (199.69231 MHz).

    This clock will be within spec for the reference clock requirements and can be looped around back into the reference clock input of the MIG IP core.

    The MIG Wizard will require the fixed pin-out of the memory signals to be entered and validated before generating the IP core."

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • saadtiwana_int
    0 saadtiwana_int over 3 years ago in reply to javagoza

    For a first attempt at FPGA programming, you are doing INSANELY well! :D Much appreciate all you help. 

    Cheers,
    Saad

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 3 years ago in reply to javagoza

    I'm trying to make a microblaze Spartan-7 design too. Like saadtiwana_int, I've used one before in a Zynq design. My goals will be humble: be able to talk to one FPGA  fabric input resource (a button) and one output (an LED).

    It's not part of the Migration program. I'm going to take my time to do this, experiment a little. Maybe try to use an ARM soft core later ...

    • Cancel
    • Vote Up +2 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