Four steps to fix niosii project path change

Source: Internet
Author: User

Four steps to fix niosii project path change (2014-08-03 16:41:01) reprint http://blog.sina.com.cn/s/blog_bff0927b0102uy30.html
Tags: nios path change setting.bsp Category: Development tools

In the development of niosii, the path change poses a series of problems: for example, when we create a new engineering NIOS_PRJ (including QUARTUSII Engineering, Qsys module, and Niosii Project) on a path on a PC, assuming that the path is C:\NIOS_PRJ, If you change the project path to D:\NIOS_PRJ, if you do not make any settings changes, the NIOSII engineering exception will occur because of a series of problems. In fact, we only need a simple four-step setup operation, you can make the NIOSII project normal operation.

First, modify the workspace path

The first is the change of workspace path, generally speaking, we set the project folder to workspace, because the project path has changed, so to adjust the path of workspace, as shown, the path to D:\NIOS_PRJ.

After clicking OK, import the already existing project in the niosii SBT software, the method is no longer detailed, get after the completion. It is important to note that if the directory area already exists, it needs to be deleted and then imported, because the project is invalid because of the path change.

Second, modify the path in the setting.bsp file

If you build the project directly at this point, the status area will appear as shown in the warning

Warning hint Sopcinfo file cannot be found, the reason is that the path changed, we need to reset the path of the Sopcinfo file, locate the setting.bsp file under the BSP project, as shown in.

By double-clicking into the file, you can see that the Sopc file path in the red box and the BSP generation path are still in the original path location, which is the source of the problem.

We'll change them to the current path and get it done.

Third, re-generate BSP Project

Finally, right-click the BSP Project and select Nios ii->generate BSP as shown in.


After the completion of the build project can be.

Iv. carrying out the run Configuration

It is necessary to note that if you run directly at this point, the dialog box shown will pop up.

This is still the blessing of the path change, the software to find the original path of the Elf file, right-click T22_test main project, run Configuration, the path as shown.

In fact, in this process, the software will update the current project where the path of the elf file, as shown in the red box.

So you don't have to make any changes, just click Run and the project will work.

The above is to fix the niosii path change of four steps, the completion of the path changes to the NIOSII project effect is eliminated. It can be seen that the path change will have more impact on the NIOSII project, because some parts of the NIOSII Project store the path information needs to be updated. Of course, as a more secure method , when we change the engineering path, we can simply create a new niosii project, add the source code into the re-build and run, will directly avoid the path problem.

Four steps to fix niosii project path Change (RPM)

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.