首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

向EPCS16中下载程序的疑问

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怎么知道用户的程序下到哪里呢?

这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm

1,是啊,楼主没有建立targetboard,所以选镜像的时候没有选择到cfi或epcs,建立镜像后就可以选了。

2.吓到sof,是下配置fpga的信息,所以这个是默认的,不用选。

3.no cfi table是指flash才需要的epcs不需要的table,要解决这个问题就是建立targetboard,cfitable就是flash的头文件,建立targetboard就是高速fpga如何下载程序到flash中。

这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm

呵呵,我看了新的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

这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm

现在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编辑过]

这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm
返回列表