呵呵,我看了新的pdf,现在的确不用建立targetboard了,使用新的new configure 来设置image。 Before writing flash, you must open a flash configuration. Decide whether you can use a pre-existing flash programmer configuration, or you need to create a new flash programmer configuration. If you have previously programmed the project to flash, and you selected special options, you might wish to reuse the flash configuration. If you are creating a new flash programmer configuration, complete the following steps: 1. Select Flash Programmer at the left side of the dialog box. 2. Click the New launch configuration button in the upper left corner of the flash programmer window, as shown in Figure 2–3. The Nios II IDE creates a new flash programming configuration. Altera Corporation 2–3 May 2008 Nios II Flash Programmer User Guide Using the Flash Programmer in IDE Mode Figure 2–3. Creating a New Flash Programmer Configuration If you are reusing an existing flash configuration, and the Quartus?II project has been recompiled since the flash configuration’s creation, complete the following step: v Click Load JDI File. Loading the JDI file ensures that the Additional nios2-flash-programmer Arguments box contains the correct instance ID. For additional information about the instance ID, see Table 3–2 on page 3–2. To write flash using a flash configuration, carry out the following steps: 1. If you wish to program flash with software from your Nios II IDE project or a read-only zip file system associated with your Nios II IDE project, check the box titled Program software project into flash memory. 2. If you wish to pass any additional arguments to the flash programmer, enter them in the field titled Additional nios2-flashprogrammer arguments. 3. If you wish to program flash with FPGA configuration data, check the box titled Program FPGA configuration data into hardwareimage region of flash memory. a. In the FPGA Configuration (SOF) field, type or browse to the SRAM object file (.sof) you wish to program. 2–4 Altera Corporation Nios II Flash Programmer User Guide May 2008 The Flash Programmer Dialog Box b. In the Hardware Image field, select the preset location at which you wish to program the SRAM object file, or select Custom. If you select Custom, you must also specify a memory name, and an offset (in bytes) within that memory. 4. If you wish to program flash with an arbitrary binary file, check the box titled Program a file into flash memory. You must specify a file to program, a flash memory name, and an offset. 1 If you wish to configure an FPGA from parallel flash using active-parallel (AP) configuration mode, you cannot use the Flash Programmer in IDE mode to program the configuration data into parallel flash. You must use command-line mode. For details, see “sof2flash” in Chapter 3, Using the Flash Programmer in Command-Line Mode of this document. The Nios II EDS also provides the Altera Zip Read-Only File System software component, which is an easy-to-use tool for storing and accessing data in flash memory. Depending on your application, you might find it more convenient to use the Zip Read-Only File System, rather than storing raw binary data in flash memory. f For details, see the Zip Read-Only File System topic in the Nios II IDE help system. 5. Click Program Flash. The IDE performs the sequence of operations required to program all the specified files into flash memory. f Refer to the Nios II IDE help system for an explanation of controls in the Flash Programmer dialog box. If your target design has a System ID component, the IDE verifies that a system with the expected system ID value is running on the FPGA before attempting to program flash memory. If the expected system is not running, the flash programmer does not continue to program the flash memory. The IDE skips this check if there is no System ID component in the target system. 1 Regardless of the system ID, you cannot program flash memory if the hardware |