[Serialization] [FPGA black gold Development Board] What about niosii-program download (9)

Source: Internet
Author: User

Disclaimer: This article is an original work and copyright belongs to the author of this blog.All. If you need to repost, please indicate the sourceHttp://www.cnblogs.com/kingst/

 

 

Introduction

This section describes how to compileProgramDownload to the Development Board.

You need to download the program twice during the development of the program. For the first time, in the Quartus software, we downloaded the configuration file generated by the logic and software to the PV * (* 1, 4, 8…) in the as mode ...) Or download it to the SRAM in FPGA in JTAG mode. The second time is to download the program to flash in the Nios software. Next, let's explain it one by one.

 

Download the configuration file

First, connect the USB blaster to the Development Board. First, connect it to the as mode interface of the Development Board. Then we open the Quartus software (assuming we have compiled the project), open it, and click the Red Circle shown

After opening, we can see

The download mode is selected in red circle 1. We select active serial programming. If no hardware is found next to red circle 2, click red circle 2.

Click, as shown in, double-click red circle 1, found red circle 2 for USB-blster [USB-0], click Close.

After clicking, we will return to the interface, and we will click "add file…" in the red circle ...) Add the program to be downloaded.

Click, as shown in. Double-click the Red Circle and click open.

After clicking, we will return, and we also need to configure it to select the two options (Program and verity) at Red Circle 1 ),

Click Start at red circle 2 and start download. The download progress is displayed at Red Circle 3.

After the download, we can see that the three steps in the red circle have changed to 100%, indicating that the download is successful.

In as mode, after the download is successful, you need to disconnect the USB blster from the Development Board, restart the Development Board, and the Downloaded Program can run. The programs downloaded in the as mode are downloaded to the ECS *. After power loss, the programs can be saved without data loss. When a program downloaded using JTAG is downloaded to the SRAM in FPGA, data will be lost after power loss. Next let's take a look at how to download the JTAG port program.

The method is similar to the as mode, but it is different in the mode selection. As shown in, select JTAG in the red circle and click Add file,

Click and select led. SOF in the red circle, as shown in.

Click Open to return to the interface, click Start in the Red Circle 1, and then click it. The progress is displayed at the red circle 2, and 100% is displayed after completion.

OK. The download of the program under Quartus is complete. Next we will explain how to download the program to Flash Under the Nios.

 

Burn programs to flash

For downloading programs under the Nios, we only need the JTAG port. First, we need to connect the USB-blaster to the JTAG port of the Development Board, and then open the niosii IDE.

Click the Red Circle

Double-click the red circle, as shown in.

Double-click the program, as shown in figure. If you select red circle 1, the program is burned to flash. Red Circle 2 is the project name, red circle 3 is the flash file name, and ends with the. Elf suffix. In red circles, the configuration file is burned to flash. The red circle 5 is to burn the file to flash, and the red circle 6 is to detect the System ID before downloading. These are modified according to your needs. We need to burn the program to flash. The default setting is OK and does not need to be changed. Click program flash to start writing.

During the writing process, you can see the download information in the observation column of the niosii ide. After the download, as shown in

After the installation is completed, restart the system.

In fact, you can also go to Quartus iiprogrammer to download the configuration information under the nio ii ide, as shown in

Okay. Let's talk about this in this section. If you have any questions, please leave me a message. My QQ: 984597569, or join our high-level technology group: 107122106.

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.