NIOS编译过程中常见问题―EP2C35F484C8
《NIOS编译过程中常见问题―EP2C35F484C8》由会员分享,可在线阅读,更多相关《NIOS编译过程中常见问题―EP2C35F484C8(4页珍藏版)》请在装配图网上搜索。
1、一、工程设置和环境导致的问题Severity and Description Path Resource Location Creation Time IdD:Nosuchfileordirectoryhello_world_syslibline120 83549 16解答:( 1)这个一般是环境的问题,环境没有装对,或者你的工程文件建的有问题建议重新建工程。(2)如果重建工程仍不行,可能是环境的问题,说明NIOS软件与别的软件发生冲突,实验中发现,这类错误在重复编译多次后会消失,所以可以耐心 地多编译几次。二、选择工作空间或文件时文件和文件夹中不能有空格字符,不能有汉 字。此类问题额常见报错
2、:( 1) make:* No rule to make target 'C:/Documents', need by .( 2) Illegalprojectlocation.Directoryisnotwritable:C:DocumentsandSettingssomeusernameMy Documents三、运行时出现:Errors exist in a required project. Continue launch?解答:当出现此类情况,总是点击 “Nd;因为程序编译便报错,无法生成链接文 件,所以没法下载到芯片中运行,点击 “Ye也无法运行。只能检查代码的错误
3、 并改正,重新编译运行。四、硬件连接问题,需重新检查实验板的下载线是否连接上。( 1) nios2-terminal:can't open uart:Permission denied( 2) "Terminal process failed"五、可能选择了串口做为调试设备,应该为 jtag_uart 。报错Unable to launch C:/altera/72/nios2eds/bin/nios2-terminal.shexit(1):Nios II Terminal Window .解答:Thismessageshouldonlyappearunderthe
4、followingconditions:youareusinguart_0forinput/output instead of the JTAG UART (lab nios2int), and you use a USB-to serial converter sinceyourPCdoesnothaveaserialport.Iftheseconditionsaretrue,youcansafelyignorethe message and use Hyperterminal for input/output.Ifyouareusinguart_0,butnotaUSB-to- seria
5、lconverter,theremaybeaconflictbetweenHyperterminal and the Nios II IDE. On a PC with a serial port, Nios II IDE will connect portCOM1totheconsolewindowifuart_0isspecifiedasthestdin/stdout/stderrdeviceintheSys temLibrary Properties window. In this case, using Hyperterminal will cause anunnecessary co
6、nflict.Close Hyperterminal and the Nios II IDE, and then restart the Nios II IDE alone.六、代码的末行非空行( 1) Warning:( 2) Warning:end of file not at end of a line; newline inserted( 3) warning:no newline at end of file解决:Step 1: place the cursor at the very end of your program file.Step 2: press Enter (or
7、the Return key) to create a new blank line at the end of your file.Step 3: press the Home key to move the cursor to the very beginning of the last line.Step4:pressandholdtheDeletekey,todelethewhitespacecharactersthatareusually auto-inserted by the Nios II IDE editor whenever you create a blank line.
8、即每个文件的最后一行一定要是空行,不包含空格和任何字符。虽然这种 警告不会影响编译和运行,但我们最好遵循编程规范,努力消除所有的警告。七、其他( 1) make:* system_project error 2a.首先试着看代码是否有问题,如果没有问题,可能是工程设置的问题。b.此类错误有时多编译几遍就可消除,可以试试多编译几遍。c.编译是选择Project下的Clean试试。d.重建一个NIOS工程,把原工程中的源程序复制到该新工程下,build新工程发现没有了上述错误。重装 NIOS系统后并更改了安装路径后,NIOS的一些头 文件会发生变化,所以会有上述错误的发生,解决方法就是新建一个工程,复 制原工程的源程序到新工程下就可以了。( 2) make1:* obj/altera_avalon_sysid.o Error 1 make:* system_project Error 2Quartus 不是正版的话,需要在 SOPCBuilde用 删掉对应CPU的sysid控件。SystemID就是一种标示符,类似校验和的这么个东西,在你下载程序之前 或者重启之后,都会对它进行检验,以防止 Quartus和NIOS程序版本不一致的 错误发生。 make:Resourcetemporarily unavailableE:No such file or directory 4/ 4
- 温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。