no cfi table found at...这个问题就是楼主没有建targetboard,楼主可以看看ug_nios2_flash_programmer.pdf中有详细的说明。
“请问各位有大牛什么办法让应用程序下载到epcs16中啊???”
就是在定制targetboard时在epcs中建立镜像地址,在flash programmer时选择这个地址就可以下到epcs中了,这个我以前做个实验的。
“可是在7.2环境中已经没有这个选项了,请问还有什么方法定制target board啊??在用flash programmer往epcs16中下sof文件时没有定制target board也成功了啊?”
flash programmer在下程序之前会下sof到fpga配置芯片,这个不需要定制targetboard,因为直接存到epcs的首地址,但是要下用户程序到epcs的话,自己建的镜像是有off set的这样才会和pof不冲突啊。不然nios怎么知道用户的程序下到哪里呢?
1,是啊,楼主没有建立targetboard,所以选镜像的时候没有选择到cfi或epcs,建立镜像后就可以选了。
2.吓到sof,是下配置fpga的信息,所以这个是默认的,不用选。
3.no cfi table是指flash才需要的epcs不需要的table,要解决这个问题就是建立targetboard,cfitable就是flash的头文件,建立targetboard就是高速fpga如何下载程序到flash中。
呵呵,我看了新的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
现在altera的datasheet写得是越来越模糊了,难度他是为了推广他的教程吗?我觉得非常困惑。
楼主不要慌嘛,总有办法的。我以前用过5.0和5.1都是用命令行mk_target_board的方式,后来6.0以后就可用用sopc下的gui提供的方法,建立targetboard。现在7.2版本的就没有targetboard了,那他总需要建立image吧,楼主可以试试命令行方式啊,其实我现在觉得这种方式比gui好得多,其实gui就是kernel的一个壳子,楼主多试试。
我也和你一起查一查。
[此贴子已经被作者于2008-9-10 12:43:39编辑过]
顶一个,我也遇到这个问题The SOPC Builder system does not have any flash memory.怎么办啊?
7.2不用搞什么目标板!!就因为看到你这个贴。浪费我两天时间。EPCS16我下进去了
删掉我的回帖。悲哀~~~~~~~~~~~~~
搞错了~~~对不起
请问楼主问题解决了没?解决了可以拿出来分享一下
Quartusii niosii 我是直接用7.2版的 以前版的不知道 所以各位大侠说的我云里雾里
反正我做好了SOPC,也编好了一个C程序,甚至非脱机运行时非常好,但考虑到脱机运行,要下载到FLASH时就头痛了,因为在NIOSII7.2中,PROGRAMMER 按钮是灰色的,各位行行好,告诉我怎么回事,究竟怎样一步一步的解决它
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |