NIOS II Development Memorandum

Source: Internet
Author: User

About a year did not do Nios II development, recall the last time to do Nios II or last year to do graduation design time. At that time, it was based on the SOPC frequency characteristic tester, which took me about 2 months to learn from the Nios II development from scratch. Learn Nios II all know, if no one with learning, then the first period of time must be the most painful, because almost every step, always encounter a lot of mistakes. When I was getting started, SOPC Builder had withdrawn from the historical stage and replaced it with a new qsys environment. Although said to be brand-new, but it is in the original Sopc builder upgraded a bit, but, after the upgrade, all the bus has to be manually connected. This is very depressing, because the online can find the tutorials, most of them are still talking about the SOPC builder, SOPC Builder, these lines are not necessary for us to connect, are the default connection is good. Therefore can only bite the bullet, 1.1 points to grope, about spent 1.5 months of time, every day is in pain tangled in, every day will encounter various problems, and then Baidu, QQ group inside Find the answer. After such a long period of effort, finally, NIOS II in the development process will encounter a variety of problems I have encountered, also found a scientific or heterodoxy solution.

Now, as the project requires, Nios II is launched again. However, now the development of the relatively earlier, it will be more relaxed, first of all, after a year of in-depth study, Altera's various development environment and tools have mastered the very skilled. Secondly, I think it is also the most important, I learned the scientific search for information, to solve the problem of the method. Previously encountered problems are all kinds of Baidu, the Official handbook has an absolute fear of psychology, no confidence to see. After a period of time after the project intensive training, look back to see, the original reading the English manual is also the case. Now, I encountered a problem, the first thing to think about is to go to the English data sheet to find the answer.

Nonsense so much, now to summarize, a year later to get started again Nios II development encountered a variety of problems and solutions. Of course, my method is not necessarily the most scientific, if you have more scientific solutions, welcome to explore.

?

Combined with the previous article on the DE1-SOC run Nios II + Uc/os content, this article will no longer detail the entire process, only the process of error-prone areas listed, in the future after they have forgotten to have a check of the place.

?

    1. In systems that need to eventually solidify the program to EPCs, you need to add epcs/epcqx1 Serial Flash Control. The reset signal of the controller must be connected to the JTAG Debug module reset signal (in the CPU module), and it is best to connect the reset signal of all other modules to the JTAG Debug module reset signal, otherwise, in the end through the flash An error occurs when programmer the curing procedure. As shown in the following:

    2. The EPCs Avalon Memory mapped port needs to be connected to both the Data_master and instruction_master of the CPU. As shown in the following:

    3. The external signal of the EPCS needs to be exported to the top layer (for Cyclone III and Cyclone IV devices) for PIN assignment, as shown in:

      Here, how to assign pins after exporting to the top layer is described in Altera's Embedded peripheral IP User Guide

4, the CPU reset vector set to epcs,cpu the exception vector set to memory (On_chip_memory or SDRAM), as shown in:

NIOS II Development Memorandum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.