Board logo

标题: [求助]NiosII程序的EPCS配置 [打印本页]

作者: xwzhl    时间: 2007-7-10 13:13     标题: [求助]NiosII程序的EPCS配置

  我自己做了一个板子,上面有EPCS64和SRAM等,程序能够在SRAM中跑起来,但是我希望一上电程序能够自动运行,所以希望把程序烧到EPCS64中去,通过NiosII的Flash Program配置工具好像只把.SOF文件配置进去了,程序没有配置进去,因为重新上电后程序并没有运行,Flash Program的输出的信息如下,从中好像也没有输出什么错误啊,哪位大侠能帮我看看,或者能不能说一下配置这个东西有哪些地方需要特别注意的,谢谢啊

#!/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 G:/Graduation/Debug/LCD/software/lcd_test2/Debug

# Creating .flash file for the FPGA configuration

"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="G:/Graduation/Debug/LCD/lcd_test

.sof" --output="lcd_test.flash"

Info: *******************************************************************

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=lcd_te

st.opt G:/Graduation/Debug/LCD/lcd_test.sof lcd_test.pof

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings

    Info: Allocated 54 megabytes of memory during processing

    Info: Processing ended: Thu Jul 05 23:13:05 2007

    Info: Elapsed time: 00:00:07

Info: *******************************************************************

Info: Running Quartus II Convert_programming_file

Info: Command: quartus_cpf --no_banner --convert lcd_test.pof lcd_test.rpd

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings

    Info: Allocated 51 megabytes of memory during processing

    Info: Processing ended: Thu Jul 05 23:13:11 2007

    Info: Elapsed time: 00:00:06

# Programming flash with the FPGA configuration

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00002000 --sidp=0x0

0000808 --id=2135972589 --timestamp=1183647553  "lcd_test.flash"

Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00

Resetting and pausing target processor: OK

Reading System ID at address 0x00000808: verified

              : Checksumming existing contents          

00000000      : Verifying existing contents            

00010000      : Verifying existing contents            

00020000      : Verifying existing contents            

00030000      : Verifying existing contents            

00040000      : Verifying existing contents            

00000000      : Reading existing contents              

00010000      : Reading existing contents              

00020000      : Reading existing contents              

00030000      : Reading existing contents              

00040000      : Reading existing contents              

Checksummed/read 320kB in 21.2s                                        

00000000 ( 0%): Erasing                                

00010000 (20%): Erasing                                

00020000 (40%): Erasing                                

00030000 (60%): Erasing                                

00040000 (80%): Erasing                                

Erased 320kB in 3.0s (106.6kB/s)                      

00000000 ( 0%): Programming                            

00010000 (20%): Programming                            

00020000 (40%): Programming                            

00030000 (60%): Programming                            

00040000 (80%): Programming                            

Programmed 285KB +35KB in 15.2s (21.0KB/s)                

Did not attempt to verify device contents

Leaving target processor paused

# Creating .flash file for the project

"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="lcd_test.flash" --input="lcd_tes

t2.elf" --output="epcs_controller.flash"

# Programming flash with the project

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00002000 --sidp=0x0

0000808 --id=2135972589 --timestamp=1183647553  "epcs_controller.flash"

Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00

Resetting and pausing target processor: OK

Reading System ID at address 0x00000808: verified

              : Checksumming existing contents          

00040000      : Verifying existing contents            

00040000      : Reading existing contents              

Checksummed/read 64kB in 4.2s                                        

00040000 ( 0%): Erasing                                

Erased 64kB in 0.6s (106.6kB/s)                        

00040000 ( 0%): Programming                            

Programmed 34KB +30KB in 2.9s (22.0KB/s)                  

Did not attempt to verify device contents

Leaving target processor paused

I


作者: kzw    时间: 2007-7-16 10:21

你采用sdk shell下载,不要用ide下载,试一下,下载到epcs中是很简单的啊。




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0