(Original example) How do I use the ZIP file system on the niosii? (IC design) (nio ii) (de2)

Source: Internet
Author: User

Abstract
Sometimes you have to write text or image in the program. Where should I put the case? You can use fopen () in the C-producer statement as long as you place your case in a zip file system without any other code () extract the statement.

Environment: US us II 7.2 SP1 + niosii 7.2 SP1 + de2 (Cyclone II ep2c35f627c6)

Introduction
The project template of the ZIP file system is provided by the nioeids. To use the ZIP file system, you can modify the template by using the root template. However, if you do not pay attention to the template, the entire template cannot be successfully written, unless otherwise stated.

Hardware
Step 1:
Use the reference design provided by Youjing Technology

The hardware part does not need to be re-built by using the system-based system tool. You can directly use the reference design provided by Youjing technology.

Http://www.terasic.com/downloads/cd-rom/de2/DE2_System_v1.4b.zip

Step 2:
Create de2_zip_file_system object

Explain the solution, and then change \ de2_system_v1.4b \ de2_demonstrations \ sopc_builder \ reference_design \ de2_nios \ To [de2_zip_file_system].

Step 3:
Use Quartus II 7.2 To activate \ de2_zip_file_system \ de2_nios.qpf

Youjing technology has already created de2_nios.sof, which can be directly merged into de2. Of course you want to use Quartus II to renew it again.

Software
Step 1:
Use the ZIP file system project template to create a new niosii tutorial

Click <finish> next.

Step 2:
Unzip files.zip into flash

Tools-> flash programmer

Click new in the upper right corner for the first time to create a new configuration.

Enter zip_filesystem_0 in the project, and the debug/zip_filesystem_0.elf will be automatically generated.

Select the ZIP file system file for flash. In this template, set the ZIP file to \ de2_zip_file_system \ Software \ zip_filesystem_0_syslib \ files.zip. In addition, select cfi_flash_0 for memory,0x100000 for offsetI am stuck here for a while, and finally press <program flash> to import the ZIP file into flash.

After the flash is successfully merged, the following message is displayed, and the "leaving target processor paused" message is displayed at the end, but you do not need to worry about it. This operation is normal.

Step 3:
Renewal itinerary

The final result is as follows:

Download the complete program
De2_zip_file_system.7z

Conclusion
Youjing technology has an example. In the case of a simple web server built on the nioii platform, where should HTML be stored? Is placed in the ZIP file system. I am working on QR code decoding, and the video is also placed in the ZIP file system. In this way, you can simply use the fopen () in the C example () as for the fopen () usage method of dynamic compute, the routines in the template are clear, so I will not explain it more clearly.

See also
(Original statement) How can we determine the limit information of no CFI table found at address? (SOC) (nio ii) (de2)
(Formerly known as ghost) How to Use host file system and zip file system in nioii eds 8.0? (SOC) (nio ii)
(Formerly known) How can I perform compaction operations on flash in the niosii? (SOC) (nano II) (de2) (DE2-70)

Reference
Niosii software developer's Handbook ch.15 read-only ZIP file system

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.