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

使用niosII command shell 进行flash 编程出错,帮忙看看啦

使用niosII command shell 进行flash 编程出错,帮忙看看啦

使用命令nios2-flash-programmer 时出错,提示说 no epcs registers find .

我在sopc中选择unspecified board ,添加了epcs_controller.为什么会出错?

曾经自己建目标板出错,建目标板,只填写了flash memory一个选项页,但是在nios中编译时生成epcs_controller.flash出错。也请指点一下那个步骤出错了,谢谢了,在线等。。。。。

你参考一下de2的epcs编程,步骤和你的差不多,你看细节上有什么不同不.

在交流中前进,共同实现nios的应用。

de2能不能具体点?不清楚是那个文件?

de2有一个教程的啊,你看看。
在交流中前进,共同实现nios的应用。

首先将配置信息通过quartusII下载到epcs中,然后使用cmd shell下载就可以了。上面设置没变。

为了flash programmer时建目标板,只需填写flash memory一个选项页。

而添加epcs_controller需要指定目标板。

altera的培训资料上有一个关于de2的下载,都采用命令行形式,flash和epcs都可以直接下载,都不需要定制目标板,要求q2和nios2在5.1以上的版本。
在交流中前进,共同实现nios的应用。
建目标板之后或编辑目标板之后请选一下unspecified board然后再选回你所要的目标板,这样SOPC在生成的时候就不会出错。

使用命令行的形式能够对flash,epcs进行编程方法比较简单;使用board description editor 编辑目标板时后,在nios ide中编译不能够生成.flash文件出错。后来看到一篇文章讲到需要将board description editor 生成的ptf文件修改一下,经过修改后编译正常,而且能够使用flash programmer.

文章内容如下,又需要的朋友可以看看:

Flash Programmer
Flash only flow failure in IDE—Updated December 19, 2005
The Flash only flow of the Board Description Editor is used to run the Nios II Flash Programmer on a custom board in IDE mode. When the Board Description Editor is run in the Flash Flow only, wherein no board netlist (wirelist) is provided, the resulting PTF file is missing some entries which are required for successful system generation in SOPC Builder. A subsequent attempt to generate in SOPC Builder will issue the following error:
C:/altera/quartus51/sopc_builder/bin/europa/e_project.pm 310 CALLED (e_project::device_family) WHERE <=== 'expected exactly one argument' OCCURRED on C:/altera/quartus51/sopc_builder/bin/europa/e_project.pm 1313
Workaround: The workaround is to use the Flash Programmer via command line or hand-edit the board description PTF file as described below after running the Board Description Editor.
1. Run through the Flash Flow of the Board Description Editor as instructed in the Board Description Editor (PDF) chapter of the SOPC Builder Handbook.
2. Close SOPC Builder
3. In a text editor, open the .ptf file created by the Board Description Editor.
4. In the CLASS/BOARD_DEFAULTS section of the .ptf file, add the following entries.
o device_family = "<device family>"; suitable values for <device family> are CYCLONE, CYCLONEII, STRATIX, STRATIXII, etc.
o For each CFI or EPCS flash entered in the board description, create a REFDES section with an arbitrary base address, such as just "0".
o Workaround_example.txt shows an example of the edits.
5. Save and close the .ptf file after making the edits.
6. Re-open the system in SOPC Builder, select the newly created board description in the "Target" section, and then click Generate.
==========================================================
CLASS my_1c20_no_wirelist_board
{
BOARD_DEFAULTS
{
class = "my_1c20_no_wirelist_board";
class_version = "1.0";
altera_avalon_epcs_flash_controller
{
reference_designators = "U59";
}
altera_avalon_cfi_flash
{
reference_designators = "U5";
}
reference_designators = "U59,U5";
initial_system_file = "";

# >> Add these lines or equivalent <<

>> device_family = "CYCLONE";
>> REFDES U5
>> {
>> base = "0";
>> }
>> REFDES U59
>> {
>> base = "0";
>> }

# >> End add lines <<

CONFIGURATION user
{
==========================================================



如果不改,编译时会出现错误

Nios II 5.1才需要手工改,6.0已经不需要了。
返回列表