搜索
bottom↓
回复: 8

NIOS下 EPCS 时这样是什么问题

[复制链接]

出0入0汤圆

发表于 2010-12-3 16:19:54 | 显示全部楼层 |阅读模式
#!/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:/psp/NIOSTEST/software/hello_world/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/psp/NIOSTEST/NIOSTEST.sof" --
output="NIOSTEST.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=NIOST
EST.opt E:/psp/NIOSTEST/NIOSTEST.sof NIOSTEST.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 70 megabytes
    Info: Processing ended: Fri Dec 03 16:15:21 2010
    Info: Elapsed time: 00:00:03
    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 NIOSTEST.pof NIOSTEST.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 68 megabytes
    Info: Processing ended: Fri Dec 03 16:15:25 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 --cable='B
yteBlasterII [LPT1]'  "NIOSTEST.flash"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: FAILED
Leaving target processor paused

# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="NIOSTEST.flash" --input="hello_w
orld.elf" --output="epcs.flash"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x01001800 --cable='B
yteBlasterII [LPT1]'  "epcs.flash"
Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00
Resetting and pausing target processor: FAILED
Leaving target processor paused

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

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

发表于 2010-12-3 19:36:17 | 显示全部楼层
你换个usb blaster试试

出0入0汤圆

 楼主| 发表于 2010-12-3 20:46:29 | 显示全部楼层
回复【1楼】avic
-----------------------------------------------------------------------

呵呵 没有
可能工司电脑软件没装好,回家一试,可以下,不过  下完后运行不对。但debug调试显示结果是正常的。
指点下!!!!!

出0入0汤圆

发表于 2010-12-3 23:08:42 | 显示全部楼层
LZ用的哪个版本的IDE,9.0存在bug——NIOS下到EPCS后无法正常运行。
解决方法:用IDE8.0安装目录下的sof2flash.jar文件替换9.0的

出0入0汤圆

发表于 2010-12-4 11:17:00 | 显示全部楼层
回复【3楼】huoliang  
-----------------------------------------------------------------------
9.0没有bug,9.1才有bug的,我一直用9.0的,不存在这个问题

出0入0汤圆

发表于 2010-12-5 14:49:29 | 显示全部楼层
用SOPC搭建的硬件有问题,遇到返种问题是因为忘记将NIOS 软核的复位(RESET)添加引脚了,戒者是
因为你所添加的引脚不是对应按键也能导致返种问题的发生。检查硬件引脚是不是搞错了。

出0入0汤圆

发表于 2011-1-9 17:58:07 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-11-27 01:56:49 | 显示全部楼层
关注

出0入0汤圆

发表于 2011-12-9 12:31:18 | 显示全部楼层
回复【楼主位】40130064
-----------------------------------------------------------------------

我也遇到过这个问题,用的是QUARTUS211.1,主要是出现在用Qsys,NIOS2/S的时候出现这个问题,后来我就干脆不用Qsys,换成用SOPC了,现在这个问题到是没有了,但是还有一个问题就是,EPCS启动的问题,我把.text放在SDRAM里,上电程序无法运行,但是如果我把.text区放在ONCHIP MEMORY里上电可以运行。不知道大家遇到过这个问题没有?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-7-24 11:20

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

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