搜索
bottom↓
回复: 2

请教niosii下下载nios程序到cfi-flash问题

[复制链接]

出0入0汤圆

发表于 2011-5-9 22:20:38 | 显示全部楼层 |阅读模式
最近用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, 杜汶泽)
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 15:22

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表