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

EPCS中的BOOT,版主LUOXF7请看过过来......

EPCS中的BOOT,版主LUOXF7请看过过来......

我用的是ALTERA的1C20开发板,在FLASH中放硬件和软件都可以启动起来。但将硬件和软件一起放在EPCS中始终不能BOOT起来。我在自动生成的flash_programmer.sh中看到如下内容:
# Creating .flash file for the FPGA configuration
$SOPC_KIT_NIOS2/bin/sof2flash --flash=U59 --offset=0x0 --epcs --input=E:/backup/standard_e/standard.sof --output=standard.flash

# Programming flash with the FPGA configuration
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=standard.flash --sof=$SOPC_KIT_NIOS2/components/altera_nios_dev_board_cyclone_1c20/system/altera_nios_dev_board_cyclone_1c20.sof --epcs

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U59 --epcs --base=0x0 --end=0x7fffffff --input=hello_led_2.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=epcs_controller.flash --sof=__NO_SOF_PLEASE__ --epcs

# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x800000 --reset=0x2100000 --input=hello_led_2.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec

# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SOF_PLEASE__ --base=0x00800000

前两段我没有异议,是转换SOF至FLASH文件再烧写此硬件,而且下载后硬件确实开始工作了。

1. 不知为何烧软件到EPCS时共用了四段,我觉得两段就应该够了的。
2. BOOT代码应在FPGA片内ROM处,不知加--boot有什么用。
3. 后面两段不知为何又是向FLASH里写软件,我只想往EPCS里写软件的。而且这两段执行的结果总是INPUT_FILE=EMPTY, EXITING。

最关键的是,下载完后根本就不能BOOT。

HELP ME!
Love
返回列表