已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
SOPC配置资源有:SDRAM,EPCS,on-chip ram,jtag-uartcpu设置: reset选epcs,exception选onchip:10KNIOS的Library右侧:都选SDRAM (把某一个换成onchip就会full)打开Tools-flash programmer ,配置如下:点击“Program flash” ,下载成功,关闭电源,打开,即可看到现象经过试验,exception改成SDRAM也是好使的(run as,flash program 都好使)总结:1 SOPC中reset一定设成epcs2 library不要有epcs3 只要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 errors, 0 warnings Info: Allocated 53 megabytes of memory during processing Info: Processing ended: Mon Aug 18 22:27:20 2008 Info: Elapsed time: 00:00:01# Programming flash with the FPGA configuration$SOPC_KIT_NIOS2/bin/nios2-flash-programmer -epcs -base=0x01b01800 -instance=0 DE2_NIOS.flashUsing cable USB-Blaster USB-0, device 1, instance 0x00Resetting and pausing target processor: OK : Checksumming existing contents 00000000 : Verifying existing contents 00010000 : Verifying existing contents 00020000 : Verifying existing contents 00030000 : Verifying existing contents 00040000 : Verifying existing contents 00050000 : Verifying existing contents 00000000 : Reading existing contents 00010000 : Reading existing contents 00020000 : Reading existing contents 00030000 : Reading existing contents 00040000 : Reading existing contents 00050000 : Reading existing contents Checksummed/read 384kB in 9.2s 00000000 ( 0%): Erasing 00010000 (16%): Erasing 00020000 (33%): Erasing 00030000 (50%): Erasing 00040000 (66%): Erasing 00050000 (83%): Erasing Erased 384kB in 5.9s (65.0kB/s) 00000000 ( 0%): Programming 00010000 (16%): Programming 00020000 (33%): Programming 00030000 (50%): Programming 00040000 (66%): Programming 00050000 (83%): Programming Programmed 341KB +43KB in 7.6s (50.5KB/s) Did not attempt to verify device contentsLeaving target processor paused# Creating .flash file for the project$SOPC_KIT_NIOS2/bin/elf2flash -base=0x01400000 -end=0x17fffff -reset=0x1400000 -input=hello_led_0.elf -output=cfi_flash_0.flash -boot=C:/altera/72/ip/nios2_ip/altera_nios2/boot_loader_cfi.srec# Programming flash with the project$SOPC_KIT_NIOS2/bin/nios2-flash-programmer -base=0x01400000 -instance=0 cfi_flash_0.flashUsing cable USB-Blaster USB-0, device 1, instance 0x00Resetting and pausing target processor: OK : Checksumming existing contents 00000000 : Verifying existing contents Ch
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 财务年度报告催交催办函(7篇)
- 广告创意策划项目完成度考核表
- 智能家居设计师客户反馈与实施效果评估表
- 商业银行客户经理风险识别操作规范手册
- 酒店行业前台接待服务标准与提升方案
- 物流信息技术服务部数据处理时效性绩效衡量表
- 电子制造公司研发工程师绩效评估表
- 电视媒体节目策划能力绩效评估表
- 物流行业快递员配送合规性考核表
- 2026年度项目启动商洽信(6篇范文)
- 2026年广东省普通高中第一次学业水平合格性考试地理试卷
- 2026年内科三基训练模拟试题(含答案)
- 2026年江苏省高考生物试卷真题(含答案)
- 胸外科手术分级
- 国网2026变配电运行值班员-中级工考试题库
- (2026年)国网35条严重违章及其释义课件
- 金鲳鱼行业分析报告
- CNAS实验室内审员培训资料
- 2026届安徽省芜湖市镜湖区师范大学附中化学高一上期中检测试题含解析
- 保安证考试新手必看试题及2025年答案
- 2069-3-3101-002WKB产品判定准则-外发
评论
0/150
提交评论