|
#!/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 E:/SOPC/DE0_TOP/hello_world/Debug
# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0x0 --input="E:/SOPC/DE0_TOP/DE0_TOP.so
f" --output="DE0_TOP.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert E:/SOPC/DE0_TOP/DE0_TOP.sof DE0
_TOP.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 56 megabytes
Info: Processing ended: Sat Aug 28 14:01:01 2010
Info: Elapsed time: 00:00:00
Info: Total CPU time (on all processors): 00:00:00
# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --cable='USB-Blas
ter [USB-0]' --instance=0 "DE0_TOP.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
: Checksumming existing contents
00000000 : Verifying existing contents
00002000 : Verifying existing contents
00004000 : Verifying existing contents
00006000 : Verifying existing contents
00008000 : Verifying existing contents
0000A000 : Verifying existing contents
0000C000 : Verifying existing contents
0000E000 : Verifying existing contents
00010000 : Verifying existing contents
00020000 : Verifying existing contents
00030000 : Verifying existing contents
00040000 : Verifying existing contents
00050000 : Verifying existing contents
00060000 : Verifying existing contents
00070000 : Verifying existing contents
Checksummed/read 499kB in 10.2s
Erase not required
00000000 ( 0%): Programming
00002000 ( 0%): Programming
00004000 ( 0%): Programming
00006000 ( 0%): Programming
00008000 ( 0%): Programming
0000A000 ( 0%): Programming
0000C000 ( 0%): Programming
0000E000 ( 0%): Programming
00010000 ( 0%): Programming
00020000 ( 0%): Programming
00030000 ( 0%): Programming
00040000 ( 0%): Programming
00050000 ( 0%): Programming
00060000 ( 0%): Programming
00070000 ( 0%): Programming
Programmed 499KB in 0.0s
No change to device contents
Leaving target processor paused
# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00000000 --end=0x3fffff --reset=0x40200
0 --input="hello_world.elf" --output="cfi_flash.flash" --boot="D:/altera_design/
ip/altera/nios2_ip/altera_nios2/boot_loader_cfi.srec"
# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --cable='USB-Blas
ter [USB-0]' --instance=0 "cfi_flash.flash"
Empty flash content cannot be programmed or verified
# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --input="hello_world.elf" --output="epcs_
flash_controller.flash"
# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00402000 --cable='U
SB-Blaster [USB-0]' --instance=0 "epcs_flash_controller.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Input file is too large to fit (device size = 0x80000)
Leaving target processor paused
我使用的是EPCS FLASH,测试的时候用个LED闪烁的程序,可以下到EPCS中。断电再上电也可以正常运行。可是换个大点的工程就有问题。,sof加上.flash文件加起来还不到2M,可是我用的是EPCS4,说是有4M。为什么还提示文件太大了呢?请高手指教 |
|