- 1、本文档共9页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
将nios项目下载到EPCS中总结(
SOPC配置资源有:SDRAM,EPCS,on-chip ram,jtag-uart
cpu设置:?? reset选epcs,exception选onchip:10K
NIOS的Library右侧:都选SDRAM (把某一个换成onchip就会full)
打开Tools--flash programmer ,配置如下:
点击“Program flash” ,下载成功,关闭电源,打开,即可看到现象
经过试验,exception改成SDRAM也是好使的(run as,flash program 都好使)
总结:
1 SOPC中reset一定设成epcs
2 library不要有epcs
3 只要On-chip够,跟SDRAM起的作用是一样的
4 如果要减小大小,要把Small C Libardy 與 Lightweight device diver API打勾
网络上有篇文章Nios II的Boot过程分析,更详细的讲了nios的bootload过程
以下是一个人博客中的方法,要求要有EPCS和flash哦
可他没有说怎么配Library,可能是默认吧
目的:?? 将sof文件烧到EPCS中
??????? 将elf文件烧到cfi flash
步骤:1 建一个FPGA项目,建一个sopc,注意一定要加上flash和epcs controller
2 建一个Nios项目.
hello_led.c / C
自己改一下C程序
3:使用Nios II EDS的Flash Programmer进行下载
Tools - Flash Programmer
將elf烧进flash。(Flash Programmer好像只能将elf烧进flash)
如果有两个nios的话,注意一定选好--instance=0
将sof文件烧进epcs。(可以选择epcs或者flash)
最后点击[Program Flash],这样就开始将sof烧进epcs,elf烧进flash,若成功,最后出現以下讯息:
#!/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 D:/0Clare/DE2/DE2_NIOS_epcs_boot/software/hello_led_0/Debug# Creating .flash file for the FPGA configuration$SOPC_KIT_NIOS2/bin/sof2flash --epcs --input=D:/0Clare/DE2/DE2_NIOS_epcs_boot/DE2_NIOS.sof --output=DE2_NIOS.flashInfo: *******************************************************************Info: Running Quartus II Convert_programming_fileInfo: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=DE2_NIOS.opt D:/0Clare/DE2/DE2_NIOS_epcs_boot/DE2_NIOS.sof DE2_NIOS.pofInfo: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings??? Info: Allocated 57 megabytes of memory during processing??? Info: Processing ended: Mon Aug 18 22:27:18 2008??? Info: Elapsed time: 00:00:01Info: *******************************************************************Info: Running Quartus II Convert_programming_fileInfo: Command: quartus_cpf --no_banner --convert DE2_NIOS.pof DE2_NIOS.rpdInfo: Quartus II Convert_programming_file was successful. 0 e
文档评论(0)