About the niosii download to EPCs failure solution

Source: Internet
Author: User

Online to see a lot of friends and I encountered the same problem, do not know if there is no solution, if not resolved, hoping to pass under
Face of the text can help you, I am also a beginner, and hope to progress together.

Background: 1. Using Quartusii and niosii EDS software for hardware and software development;

2. Hardware: Black Gold Development Board AX301,

3. Software: LED Running lights

Here is a brief introduction to the software and hardware development steps:

The first is the construction of the hardware system, using tools----sopc builder, where each part of the module is Cpu,sdram,epcs16,system Id,jtag uart,pio_led, which needs to be noted in the CPU reset Vector to choose epcs,exception vector Choose SDRAM, if choose niosii/f type, that data cache to choose None, the specific reason to see the black Gold niosii tutorial.

In SDRAM need to pay attention to the SDRAM chip (equivalent to the memory of the PC) model, in the AX301 Development Board, SDRAM is 16bitx16m,row address:a0~a12,column address:a0~a8, So row and column two empty fill 13 and 9, here note that the others are default.

The address of the EPCs can be locked in 0x0 or not locked.

After the IP core is added, the base address is assigned and then generate.

To establish a PLL, if the output 50MHz frequency to the Nios core, then you can no longer output the same frequency of different phases of the clock to the external SDRAM clock pin.

The PLL and nios cores are then instantiated in the top layer, then the pins are assigned and the device and PIN options are set, where the unused pins is set to as input tri-stated by selecting the appropriate EPCs model from the Configeration , and then change the pin of the dual-purpose pins to regular IO. The compilation is finally started.

The second step is the development of software, I use niosii EDS, using the method see the Black Gold Nios tutorial. Here are some of the problems I encountered while downloading.

Just beginning to encounter the system ID hash not found at, the problem is mainly the. BSP (. syslib) file that is caused by a mismatch with the hardware system, the. sopcinfo file, you can right-click the built. bsp file, select Niosii- > Generate BSP, so it's up to date.

And then there's the error code 5 After a bunch of code, this problem I was not the case of EPCs four pins, and so on after the few pins, and then encountered the error code 255 After a heap of code, the download is always to 66% when the error resulted in failure, wipe out are not completed, feel always go in, the Internet to find a half-day did not solve the problem, but by the Black Gold Forum to help my friends and online to find the inspiration of another method of downloading the program, successfully solved the problem of curing procedures.

(http://www.cnblogs.com/liu_xf/archive/2011/10/23/2221880.html) This is the website of the original blog.

Just start directly in the niosii command shell input commands code, the result is not so, in fact, the code is not input, and then by the Black Gold Forum, a netizen inspired, should be the address of the file is also input, output is also, so as to get hex file. Here I post my input command, for reference only.

Sof2flash--input= "D:\George\NiosII_practice\hello\hello.sof"--
output= "D:\George\NiosII_practice\hello\flash\hw.flash"--epcs--verbose

Elf2flash--input= "D:\. \led.elf "--output=" d:\. \flash\sw.flash "--epcs--
After= "D:\. \flash\hw.flash "--verbose

(Note: "D:\". \ "Inside to enter is the path of the file, not". ", Below is also, this note, I was stealing a little lazy, hey)

Above is a command to convert to a. Flash file

Next is the command to convert the. flash file to a. hex file

Nios2-elf-objcopy-i srec-o Ihex "D:\. \hw.flash "" D:\. \hw.hex "
Nios2-elf-objcopy-i srec-o Ihex "D:\. \sw.flash "" D:\. \sw.hex "

The next step is to follow the original blog to introduce the method of doing it.
Here again thanks to the strong friends of netizens.

If there is a master can solve the normal add sof and elf file download problem, I hope to be able to guide the younger brother, thank you.

About the niosii download to EPCs failure solution

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.