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

[求助]nios ii flash programmer 使用

[求助]nios ii flash programmer 使用

看不到东西啊
在交流中前进,共同实现nios的应用。
我使用的是RMC-CYIC6型开发板,开发套件low_cost工程中有一个rca-cy1c12-board工程文件夹、一个my-new-board工程文件夹和low_cost工程本身。当我要把low_cost工程烧进flash时,在sopc build的target board选中rca-cy1c12-board(没有RMC-CYIC6选项),操作flash programmer时,会出现错误there is a problem with the target board.check the target board selection in sopc builder for this system.如果我再把sopc builder打开,有时此错误会消失。如前一个错误消失接着选择program FPGA configuration data into hardware-image region of flash memory 选项,会出现错误 the target board must define at least one hard image to program an FPGA configration.我只好不选此项,在Program a file into flash memory中将hello_led.c烧进flash.出现:

#! /bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd F:/rbf5/low_cost/software/hello_led_0/Debug

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x100000 --rese
t=0x0 --input=hello_led_0.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/co
mponents/altera_nios2/boot_loader_cfi.srec
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=F:/rbf5
/low_cost/rca_cy1c12_board/system/rca_cy1c12_board.sof --base=0x00200000
Jul 25, 2006 11:04:02 AM - (??) nios2-flash-programmer: Launching Quartus Progra
mmer to download:
F:/rbf5/low_cost/rca_cy1c12_board/system/rca_cy1c12_board.sof
Pre-Reading 0KBytes of data from U5:
|----.----+----.----|
********************* (0.782 sec).
Writing 16KBytes :
|----.----+----.----|
********************* (1.594 sec).
Verifying 16KBytes of data:
|----.----+----.----|
********************* (0.828 sec).
Jul 25, 2006 11:04:22 AM - (??) nios2-flash-programmer: Success. Verified 16Kbyt
es written to U5.
Jul 25, 2006 11:04:22 AM - (??) nios2-flash-programmer: Flash programming comple
te
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Creating .flash file for the datafile
$SOPC_KIT_NIOS2/bin/bin2flash --flash=U5 --location=0x0 --input=F:/rbf5/low_cost
/software/hello_led_0/hello_led.c --output=hello_led.flash
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Programming flash with the datafile
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=hello_led.flash --sof=__NO_SO
F_PLEASE__ --base=0x00200000
Jul 25, 2006 11:04:23 AM - (??) nios2-flash-programmer: SOF-download skipped.
Pre-Reading 7KBytes of data from U5:
|----.----+----.----|
********************* (0.797 sec).
Writing 16KBytes :
|----.----+----.----|
********************* (1.484 sec).
Verifying 16KBytes of data:
|----.----+----.----|
********************* (0.813 sec).
Jul 25, 2006 11:04:33 AM - (??) nios2-flash-programmer: Success. Verified 16Kbyt
es written to U5.
Jul 25, 2006 11:04:33 AM - (??) nios2-flash-programmer: Flash programming comple
te
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
请问为何会出现以上错误及如何消除?low_cost.sof是否烧进flash中?正确地该如何操做?
 
当在sopc build的target board选中my-new-board选项,操作flash programmer时,没有了以上错误,却不能成功烧进去,出现:
#! /bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd F:/rbf5/low_cost/software/hello_led_1/Debug

# Creating .flash file for the FPGA configuration
$SOPC_KIT_NIOS2/bin/sof2flash --flash=U5 --offset=0x00000000 --input=F:/rbf5/low
_cost/low_cost.sof --output=low_cost.flash
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert F:/rbf5/low_cost/low_cost.sof l
ow_cost.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Processing ended: Tue Jul 25 11:23:12 2006
Info: Elapsed time: 00:00:01
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Programming flash with the FPGA configuration
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=low_cost.flash --sof=F:/rbf_f
ile1/my_new_board/system/my_new_board.sof --base=0x00200000
Jul 25, 2006 11:23:13 AM - (??) nios2-flash-programmer: Launching Quartus Progra
mmer to download:
F:/rbf_file1/my_new_board/system/my_new_board.sof
Error: Can't configure device. Expected JTAG ID code 0x020850DD for device 1, bu
t found JTAG ID code 0x020820DD.
Error: Operation failed
Error: Quartus II Programmer was unsuccessful. 2 errors, 0 warnings
Jul 25, 2006 11:23:19 AM - (??) nios2-flash-programmer: Unable to download SOF:
F:/rbf_file1/my_new_board/system/my_new_board.sof, exiting
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x100000 --rese
t=0x0 --input=hello_led_1.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/co
mponents/altera_nios2/boot_loader_cfi.srec
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SO
F_PLEASE__ --base=0x00200000
Jul 25, 2006 11:23:19 AM - (??) nios2-flash-programmer: SOF-download skipped.
Jul 25, 2006 11:24:03 AM - (??) nios2-flash-programmer: Error opening target har
dware
Send (64) failed.
Unable to synchronize with target.
Jul 25, 2006 11:24:03 AM - (??) nios2-flash-programmer:
In order to program flash, you must first create a purpose-built
flash-programming design (i.e. FPGA configuration) and associate it with
your particular board. The Nios development kit is delivered with purpose-bui
lt
flash-programming designs pre-built for several development boards. If you wi
sh
to program flash on your own board, you must first create a flash-programming
design.

The process of creating a flash-programming design for your board is mostly
automated. From a bash-shell, execute this script:

mk_target_board --help

The help-message includes references to other documentation on programming
flash and targeting Nios systems to custom board designs.
- exiting.
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Creating .flash file for the datafile
$SOPC_KIT_NIOS2/bin/bin2flash --flash=U5 --location=0x0 --input=F:/rbf5/low_cost
/software/hello_led_1/hello_led.c --output=hello_led.flash
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

# Programming flash with the datafile
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=hello_led.flash --sof=__NO_SO
F_PLEASE__ --base=0x00200000
Jul 25, 2006 11:24:04 AM - (??) nios2-flash-programmer: SOF-download skipped.
Jul 25, 2006 11:24:41 AM - (??) nios2-flash-programmer: Error opening target har
dware
Send (8) failed.
Unable to synchronize with target.
Jul 25, 2006 11:24:41 AM - (??) nios2-flash-programmer:
In order to program flash, you must first create a purpose-built
flash-programming design (i.e. FPGA configuration) and associate it with
your particular board. The Nios development kit is delivered with purpose-bui
lt
flash-programming designs pre-built for several development boards. If you wi
sh
to program flash on your own board, you must first create a flash-programming
design.

The process of creating a flash-programming design for your board is mostly
automated. From a bash-shell, execute this script:

mk_target_board --help

The help-message includes references to other documentation on programming
flash and targeting Nios systems to custom board designs.
- exiting.
WARNING: Default charset GBK not supported, using ISO-8859-1 instead

请问为何?我该如何操作?
 
我把问题粘上来了!斑竹来解答吧
 

[求助]nios ii flash programmer 使用

谢谢,总版主了!
希望大家多多赐教了!
返回列表