|
最近用flash programmer下载niosii的elf文件到cfi-flash中,老是下载到7%或者8%就失败了,引脚都是正确的。用sopc-builder加入的cfi-flash中除了地址,数据还有cs,oe,we三个引脚(是不是少了些,应该还有复位脚什么的),但是生成的没有bdf文件中没有。 其他的sdram等都是正确的。
控制台显示的代码如下:
#!/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 C:/Users/tornadomeet/Desktop/DE1_Flash/software/de1_do/Debug
# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="C:/Users/tornadomeet/Desktop/DE1
_Flash/NIOS_TFT.sof" --output="NIOS_TFT.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=NIOS_
TFT.opt C:/Users/tornadomeet/Desktop/DE1_Flash/NIOS_TFT.sof NIOS_TFT.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 122 megabytes
Info: Processing ended: Mon May 09 22:10:20 2011
Info: Elapsed time: 00:00:08
Info: Total CPU time (on all processors): 00:00:07
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert NIOS_TFT.pof NIOS_TFT.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 120 megabytes
Info: Processing ended: Mon May 09 22:10:29 2011
Info: Elapsed time: 00:00:08
Info: Total CPU time (on all processors): 00:00:07
# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00401800 --sidp=0x0
04020f0 --id=472111116 --timestamp=1304946892 --instance=0 "NIOS_TFT.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x004020F0: verified
: Checksumming existing contents
00000000 : Verifying existing contents
00010000 : Verifying existing contents
00020000 : Verifying existing contents
00000000 : Reading existing contents
00010000 : Reading existing contents
00020000 : Reading existing contents
Checksummed/read 5kB in 0.1s
00000000 ( 0%): Erasing
00010000 (33%): Erasing
00020000 (66%): Erasing
Erased 192kB in 2.7s (71.1kB/s)
00000000 ( 0%): Programming
00010000 (33%): Programming
00020000 (66%): Programming
Programmed 188KB +4KB in 3.8s (50.5KB/s)
Did not attempt to verify device contents
Leaving target processor paused
# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00000000 --end=0x3fffff --reset=0x0 --i
nput="de1_do.elf" --output="cfi_flash_0.flash" --boot="C:/altera/90/ip/altera/ni
os2_ip/altera_nios2/boot_loader_cfi.srec"
# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --sidp=0x004020f0
--id=472111116 --timestamp=1304946892 --instance=0 "cfi_flash_0.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x004020F0: verified
: 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
00000000 : Reading existing contents
00010000 : Reading existing contents
00080000 : Reading existing contents
00090000 : Reading existing contents
000A0000 : Reading existing contents
000B0000 : Reading existing contents
000C0000 : Reading existing contents
Checksummed/read 115kB in 3.4s
00000000 ( 0%): Erasing
00010000 ( 2%): Erasing
00080000 (18%): Erasing
00090000 (34%): Erasing
000A0000 (51%): Erasing
000B0000 (67%): Erasing
000C0000 (83%): Erasing
Erased 392kB in 4.0s (98.0kB/s)
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
Program failed at offset 1965E
Leaving target processor paused |
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|