NIOSII 安装问题汇总

问题1:安装QUARTSII后报FAST_CWD错误

1 [main] sh 13224 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
[BSP clean complete]

解决办法:在https://cygwin.com/站点下载对应版本的CYGWIN软件(13.1以下可选X86与X64,以上只需要安装X64)安装到QUARTUSII的安装目录下如:D:\WorkTools\Altera\Quartus II\13.0\quartus\bin\cygwin,安装时不需要选取任何的工具包,只要直接安装即可

============================================================

问题2:构建工程报Makefile 拒绝访问

Shell下同样报错

root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# chmod 777 . -R

root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# rm Makefile

root@3770K /cygdrive/e/Work/Bozhi/NIOS/VHDLStudy/hello/software/cde
# sh create-this-app
create-this-app: Running "nios2-app-generate-makefile --bsp-dir ../cde_bsp --set QUARTUS_PROJECT_DIR=../../ --elf-name cde.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c"
INFO: nios2-app-generate-makefile --bsp-dir ../cde_bsp --set QUARTUS_PROJECT_DIR ../../ --elf-name cde.elf --set OBJDUMP_INCLUDE_SOURCE 1 --src-files hello_world.c
INFO: Generating application makefile
INFO: Generated file "E:\Work\Bozhi\NIOS\VHDLStudy\hello\software\cde\Makefile"
INFO: Application makefile generated
create-this-app: Running "make"
make: makefile: Permission denied
make: *** No targets.  Stop.
make failed

解决办法:用文本工具打下cygwin/etc/fstab, 修改文件内容为:

# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table

# This is default anyway:
# none /cygdrive cygdrive binary,posix=0,user 0 0
none /cygdrive cygdrive binary,noacl,posix=0,user 0 0

原因为生成的文件夹文件等用户均为NULL SID, 无论怎么用chmod改变权限都不行。

参考:https://blog.dhampir.no/content/forcing-cygwin-to-create-sane-permissions-on-windows

============================================================

问题3:cygwin如何使用root帐户

解决办法:

Step1: 更新passwd文件:

mkpasswd -l > /etc/passwd

Step2: 使用文本工具打开cygwin/etc/passwd文件:

将文件内如下内容

Administrator:*:12328:12356:U-3770K\Administrator,S-1-5-21-208746215-1690785843-753111617-500:/home/Administrator:/bin/bash

修改为:root:*:0:0:U-3770K\root,S-1-5-21-208746215-1690785843-753111617-500:/home/root:/bin/bash

Step3: 创建用户根目录:

root@3770K /cygdrive/d/WorkTools/Altera/Quartus II/13.0
# mkdir -p /home/root/

============================================================

问题4: 无法下载ELF文件

problem

问题5: SYSID不一致

原因为复位信号,时钟信号输入不正确,onchip ram配置不正确等原因。

https://www.techbulo.com/1957.html介绍的原因外

Connected system ID hash not found on target at expected base address

2016年07月27日 ⁄ FPGA开发 ⁄ 共 707字 ⁄ 字号 小 中 大 ⁄ Connected system ID hash not found on target at expected base address已关闭评论 ⁄ 阅读 1,674 次

最近有个小项目使用到FPGA,前几天突然程序下载不进去了,一直报错“”Connected system ID hash not found on target at expected base address“”,很是郁闷,之前用着好好的。

Connected system ID

Connected system ID

如果在“Run Configurations”中忽略ID检测继续RUN,基本上会弹出如下对话框:

problem

problem

在网上搜索解决方法,一般有如下可能:

 1) unused pin没有设置,可能会收到外部信号的干扰;设置未用引脚为As input tri-stated with weak pull-up.

  2) 系统时钟信号没有约束,或者SDRAM等存储设备的时钟没有配置正确;

  3) 系统复位信号没有连接外部复位开关;

  4)   可能某些PIN分配了错误管脚;逐一检查设计PIN的分配。

      5) SOPC系统中没有添加system ID组件。

但是按照之上的步骤检查也没查出问题,今天测试之前好用的程序发现之前的程序能够烧进去,也能在线运行,我了个乖乖,这两个版本的QSYS在我的印象里是一模一样的的啊,这就奇怪了,难道我不小心修改了里面的东西?时间紧迫,先用之前的代码吧,有时间在查原因。

虽然我没有用上边5个步骤检查出问题,如果你也碰到ID的问题,不妨试试上边的方法,很多人通过上边的方法解决了问题。

外,删除*.sof, *.pof有与*.qsys同名的文件夹,重新保存并编译qsys及quartus文件,再下载sof文件后,nios2内create bsp->buliding project后,重新RUN,问题或可解决。原因为:前次修改的文件缓存在磁盘内,造成下载的芯片信息不对,因此出现不能下载的问题。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

晶通物控

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值