搜索
bottom↓
回复: 23

NIOS II中用FLASH programmer正确下载程序,但跑不起来的怪问题,请高手进来帮忙解决一

[复制链接]

出0入0汤圆

发表于 2010-3-9 15:14:35 | 显示全部楼层 |阅读模式
硬件系统:EP2C8 + EPCS4 + SDRAM + LED + LCD
硬件背景:用Verilog写的代码,编译,AS方式把POF文件下载到EPCS4,关电,上电,运行正常---LED正常闪烁烁,LCD正常显示图形。(确定EPCS电路没问题)
软件系统:NIOS II
问题所在:Run as 模式下,LED正常闪烁,LCD也能正常显示图形。下载到EPCS4时,关电,上电,LED能正常闪烁,LCD却没显示了!

用FLASH programmer下载时,打印出来的息信如下:

#!/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:/NIOSII/Study/IPM_IM_NIOS/software/IPM_IM/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/NIOSII/Study/IPM_IM_NIOS/IPM_
IM_NIOS.sof" --output="IPM_IM_NIOS.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=IPM_I
M_NIOS.opt E:/NIOSII/Study/IPM_IM_NIOS/IPM_IM_NIOS.sof IPM_IM_NIOS.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 71 megabytes
    Info: Processing ended: Tue Mar 09 14:07:03 2010
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:03
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert IPM_IM_NIOS.pof IPM_IM_NIOS.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 70 megabytes
    Info: Processing ended: Tue Mar 09 14:07:07 2010
    Info: Elapsed time: 00:00:04
    Info: Total CPU time (on all processors): 00:00:04

# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance
=0 "IPM_IM_NIOS.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents         

00000000      : Verifying existing contents            

00010000      : Verifying existing contents            

00000000      : Reading existing contents               

00010000      : Reading existing contents               

Checksummed/read 7kB in 0.1s                                       

00000000 ( 0%): Erasing                                 

00010000 (50%): Erasing                                 

Erased 128kB in 2.1s (60.9kB/s)                        

00000000 ( 0%): Programming                             

00010000 (50%): Programming                             

Programmed 122KB +6KB in 3.0s (42.6KB/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="IPM_IM_NIOS.flash" --input="IPM_
IM.elf" --output="epcs_flash_controller.flash"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --instance
=0 "epcs_flash_controller.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK

              : Checksumming existing contents         

00010000      : Verifying existing contents            

00020000      : Verifying existing contents            

00010000      : Reading existing contents               

00020000      : Reading existing contents               

Checksummed/read 82kB in 2.0s                                       

00010000 ( 0%): Erasing                                 

00020000 (50%): Erasing                                 

Erased 128kB in 2.1s (60.9kB/s)                        

00010000 ( 0%): Programming                             

00020000 (50%): Programming                             

Programmed 47KB +81KB in 3.0s (42.6KB/s)                  
Did not attempt to verify device contents
Leaving target processor paused

请高手指点了,折腾了N天了。。。问题还没得到解决。。。

阿莫论坛20周年了!感谢大家的支持与爱护!!

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出0入0汤圆

 楼主| 发表于 2010-3-10 09:56:13 | 显示全部楼层
高人呀?你们都在哪里啊?出来救救我吧。。。

出0入0汤圆

发表于 2010-3-10 10:09:15 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-3-10 10:53:02 | 显示全部楼层
你Nios的reset地址选的EPCS controller的吗?
估计你把它选在SDRAM里了

出0入0汤圆

发表于 2010-3-10 22:07:28 | 显示全部楼层
我也遇到了一样的问题,后来发现是因为NiosII(9.0)对我用的CycloneIII的支持有bug,换了8.1之后就可以了,不知这个能否对楼主有所帮助。。。可以到Altera的网站上看看。。。。

出0入17汤圆

发表于 2010-3-11 13:32:54 | 显示全部楼层
按3楼的说法检查

出0入0汤圆

发表于 2010-4-11 10:21:26 | 显示全部楼层
回复【楼主位】coolala584520
-----------------------------------------------------------------------

我也遇到了同样的问题, nios9.1sp2 nios9.0sp2我都尝试了,不能运行程序,但是能烧写,和楼主的一模一样

解决的话通知我一下,liming_nefu@126.com

出0入0汤圆

发表于 2010-5-27 11:27:43 | 显示全部楼层
回复【6楼】liming_nefu
-----------------------------------------------------------------------

我用flash programmer9.1把elf和sof一并下载到epcs里,复位后程序能跑以来,但一断电再上电就不行了,后来用jtag再加载一遍sof发现程序能跑起来,说明用sof2flash下载配置文件到epcs不好使,改用用8.0的就好用了。

出0入0汤圆

发表于 2010-5-27 18:27:15 | 显示全部楼层
我也碰到这问题啦,请问FLASH programmer下载是用jtag,还是用AS模式下载程序到epcs? 我用的是quartus 9.0。

出0入0汤圆

发表于 2010-5-27 18:31:04 | 显示全部楼层
有没有解决啊,回复一下

出0入0汤圆

发表于 2010-8-15 16:40:25 | 显示全部楼层
MARK!

出0入0汤圆

发表于 2010-8-21 13:50:53 | 显示全部楼层
我最近也遇到了类似的问题,不过我的是这样的EP3C10+onchip-ram+EPCS4。run as hardware 就行,下载到EPCS里面上电后就是没反应,后来发现时NIOS II IDE9.0本身的软件的flash program的bug,升级到9.0 SP2 就没问题了~!!!

出0入0汤圆

发表于 2010-8-21 23:32:40 | 显示全部楼层
有的大虾说是因为sof文件加了压缩的缘故

出0入0汤圆

发表于 2011-4-3 15:18:43 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-4-4 01:38:55 | 显示全部楼层
原来大家都遇到了这个问题~我也同问!

出0入0汤圆

发表于 2011-4-4 01:39:26 | 显示全部楼层
我有些时候又是可以的!nios太不稳定了~BS

出0入0汤圆

发表于 2012-2-9 21:36:04 | 显示全部楼层
楼主 ,问题解决了么,我最近学习飓风3的,用niosII 9.0也遇到了这个问题

出0入0汤圆

发表于 2012-2-13 14:19:54 | 显示全部楼层
mark 学习

出0入0汤圆

发表于 2012-7-25 11:55:28 | 显示全部楼层
有时候行,有时候不行!!不知道为什么,正在检查

出0入0汤圆

发表于 2014-11-24 19:54:24 | 显示全部楼层
楼主你好 我也遇到类似问题了 你怎么解决的呢?

出0入0汤圆

发表于 2014-11-24 19:56:23 | 显示全部楼层
楼主你好 我也遇到类似问题了 你怎么解决的呢?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-8-26 23:56

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

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