W25Q32JV烧写步骤
在nios2-flash-override。txt文件下加入下面表述
[EPCS-EF4016]  #W25QJV(Eon-lead-free)
sector_size = 65536;
sector_count = 64;

在altera_avalon_epcs_flash_controller.c文件下加入下面代码
else if((flash->silicon_id & 0xFFFFFF) == 0xEF4016) /* W25Q */
    {
      flash->dev.region_info[0].region_size = 32 * 1024 * 1024 / 8;
      flash->dev.region_info[0].number_of_blocks = 64;
      flash->dev.region_info[0].block_size = 65536;
    }
就可以用nios进行烧写。
不能直接烧写JIC文件,因为ID不兼容。


器件选择改成auto。
并且忽略掉ID校验。
烧录程序时注意避免同时使用多个串口连接。有时可能互相干扰导致无法烧录。

最近剛好在做一片AlteraCyclone II 的FPGA board.
正感到Altera 的Configuration Device 好貴的時候.
無意間在網站上發現其替代方案.

沒想到ST 的M25P10-A, M25P40, M25P16 和 M25P64正好可以替代Altera 的EPCS1, EPCS4, EPCS16 和 EPCS64.
真是不錯, 等我的FPGA 板做好後, 買幾顆ST的Serial Flash 來試試看.
網路上原始資料如下:
http://fpgaforum.blogspot.com/2006/03/any-replacement-for-altera-epcs_19.html

Sunday, March 19, 2006

Any Replacement for Altera EPCS Devices?

I know there are already many websites which claim that Altera SerialConfiguration Devices, a.k.a. EPCS devices, can be replaced by some lower costdevices. This post is just to give you more confidence on the availability ofother cheaper configuration solution for Cyclone series and Stratix II FPGAs.

Altera introduced EPCS devices at the same time the Cyclone device isannounced. Traditionally, the cost of the configuration devices (EPC family)for the Altera FPGAs are quite expensive, compared with the cost of the FPGAs.Most of the FPGA users want almost zero cost for the FPGA configurationsolution since the configuration device is mostly a combination of a simplecontroller and a non-volatile memory that stores the configuration bitstream.Therefore, when the so-called "cheapest FPGA family", Cyclone FPGAwas launched by Altera, Altera also took the initiative to provide a costefficient configuration solution for the Cyclone FPGA. The traditionalconfiguration solution for Altera FPGAs prior to Cyclone FPGA requires a simplecontroller to load the configuration bitstream from a non-volatile memory andwrite to the FPGAs during configuration. This kind of configuration methodolgyis called passive configuration. The passive configuration can be either inserial form or parallel form, depending on the available configuration modes ofthe selected FPGAs. Active Serial configuration was first available in AlteraCyclone FPGA family. During the active serial configuration, the FPGA willwrite out the Read Bytes instruction to the EPCS device and then continuouslyread the data out from the serial flash from the address 0x000000 until theFPGA is configured. The smart approach greatly reduces the configuration costby putting the simple controller in the FPGA itself. That means, theconfiguration cost is only left with the non-volatile memory only. As a result,the SPI serial flash is chosen to store the configuration bitstream as it islow cost, low pin count and easy to control from the FPGA.

Nonetheless, engineers are usually very calculative people. The EPCS pricelist, if you check from the Digikey website, looks attractive at the firstglance due to the sudden price drop on the configuration solution for an AlteraFPGA. As time goes by, engineers realize that the EPCS device is none but avery standard serial flash. And, a standard serial flash should cost much lowerthan an EPCS device with the same memory capacity. I grab some data from theDigikey website. For an example, an EPCS1 device costs USD$3.50 but a ST’sM25P10-A serial flash from ST costs as low as USD$1.10, which is a hugedifference! Imagine if you are just targeting the Altera smallest Cyclonedevice with slowest speed grade, EP1C3T100C8 (costs USD$10.70 quoted byDigikey), you will be paying too much for the configuration solution withEPCS1. Don’t you agree? M25P10 can equally do the job well at lower cost. Whynot? Don’t bother whether they are exactly the same die or not. Both devicescommands and timing specifications meet the active configuration controller(embedded inside Cyclone FPGA) requirement. Even the Quartus II programmer toolrecognizes ST’s M25P10-A, M25P40, M25P16 and M25P64, as EPCS1, EPCS4, EPCS16and EPCS64, accordingly. Perhaps there are still other cheaper alternative thanST’s M25P family.

In fact, the serial flash can do even more other than the configurationsolution. You can use it to store the general-purpose data! You will alwaysfind out that the serial flash always has more than enough to store theconfiguration bitstream, especially if you turn on the configuration bitstreamcompression in the Quartus II software tool. So, don’t waste the rest of thememory in the serial flash, furthermore, they are non-volatile memory, which isoften useful to keep some serial numbers, identification numbers, calibrationdata, tracking numbers, etc. And, themicroprocessor program data! For anexample, you can save the NIOS II ELF file in the serial flash and boot fromthe serial flash after power-up. For that reason, you may need to choose aserial flash with a bigger density, to store not only the configuration data,as well as the microprocessor program data. That way, you don’t need to sourceanother flash device to store the microprocessor data. How big the serialflash required is determined by the code size of your program. Sometimes,instead of using an EPCS4 device just to store the configuration bitstream, Iwill choose an EPCS16 replacement (USD$ 16.25 from Digikey), ST’s M25P16(USD$ 4.56 from Digikey) to be my Cyclone, Cyclone II or Straitx II FPGAconfiguration solution as well as the storage for my NIOS II ELF file, not tomention some general-purpose user data.

//
Disclaimer: The information on this post is for informational purpose only. Theauthor reserves the right not to be responsible for the topicality,correctness, completeness or quality of the information provided. Liability claimsregarding damage caused by the use of any information provided, including anykind of information which is incomplete or incorrect, will therefore berejected.

posted by fpgaforum @ 6:12 AM

当然还有别的方案 比如下文:

Connecting Spansion SPI Serial Flash to Configure Altera FPGAs

Spansion S25FLxxx devices work fine.

Just note that the Flash Programmer utility in the Nios-IDE will bomb out whenyou try to use non Altera devices.

You need to add a file to your Nios installation that provides the FlashProgrammer with the Silicon ID's of the Spansion parts.

file name = nios2-flash-override.txt
location = ../nios2eds/bin
cut and paste the following into a .txt file, and save as above.

[EPCS-202011] # EPCS1N (lead-free)
sector_size = 32768
sector_count = 4
[EPCS-202013] # EPCS4N (lead-free)
sector_size = 65536
sector_count = 8
[EPCS-202015] # EPCS16N (lead-free)
sector_size = 65536
sector_count = 32
[EPCS-202017] # EPCS64N (lead-free)
sector_size = 65536
sector_count = 128
[EPCS-010212] # EPCS4N (Spansion-lead-free)
sector_size = 65536
sector_count = 8
[EPCS-010214] # EPCS16N (Spansion lead-free)
sector_size = 65536
sector_count = 32
[EPCS-010216] # EPCS64N (Spansion-lead-free)
sector_size = 65536
sector_count = 128

The new ST device M25PX32 works fine too (this is a 32 Mbits device with 75 MHzSPI and dual I/O feature which double SPI rate).
Priced by our distributor at 0.8 USD for 1000 pieces.
Dual I/O feature is interesting to speed up code downloading from FLASH to RAMat boot time.

You have to add the following section in your nios2-flash-override.txt file:

[EPCS-207116] # FLASH ST-M25PX32
sector_size = 65536
sector_count = 64

flash代替epcs相关推荐

  1. 新手学习FPGA----如何将软硬件程序固化进串行Flash芯片EPCS

    如何将软硬件程序固化进串行Flash芯片EPCS 在FPGA芯片的使用中,软硬件程序可通过JTAG口下载进FPGA芯片中,程序可立即执行,并且在掉电后程序丢失.为了避免这种情况的出现,可使用串行FLa ...

  2. NIOS II程序Flash固化

    目录 NIOS II 程序flash固化 第一部分 EPCS flash固化 第二部分 CFI Flash程序固化 NIOS II 程序flash固化 这两天尝试着NIOS II程序固化,遇到很多问题 ...

  3. 关于怎么将Quartus和Nios程序一起固化到FPGA里面

    系统:win8.1 SDK:Quartus II 14.1 FPGA:Cyclone IV 1.将Quartus生成的.pof文件(配置Flash即可自动生成,这里不讨论),与Nios生成的.elf文 ...

  4. 工程师的NIOS II学习笔记(转)

    来源:嵌入式在线 作者:山城棒棒儿军 发布时间:2009-09-22 12:29:31 Nios Development Board Reference Manual, Stratix II Edit ...

  5. 深入浅出搞懂网络的五层协议

    1 网络的五层划分是什么? 查看全文 http://www.taodudu.cc/news/show-6244792.html 相关文章: 计算机网络五层体系结构各层协议 计算机网络--七层协议/五层 ...

  6. FPGA 之 SOPC 系列(二)SOPC开发流程及开发平台简介

    今天给大侠带来今天带来FPGA 之 SOPC 系列第二篇,SOPC开发流程及开发平台简介相关内容,希望对各位大侠的学习有参考价值,话不多说,上货. 本篇首先详细介绍了SOPC开发的基本流程,然后通过实 ...

  7. 扩容版quarters不能走正常途径生成jic的处理办法

    前言 目前在使用Cyclone V 5CGXBC4C7开发 的板子,我们一般是破解成5CGXBC5来用的,由于破解的原因,我们没办法通过正常的途径生成JIC进行烧录,在此把通过JIC固化的方法做一个分 ...

  8. 【小梅哥SOPC学习笔记】Altera SOPC嵌入式系统设计教程

    Altera SOPC嵌入式系统设计教程 第1章 概述 SOPC(System On Programmable Chip,可编程的片上系统)是Altera公司提出来的一种灵活.高效的SOC解决方案.它 ...

  9. JTAG接口固化 quartus和nios程序

    网络上能够搜索到的,一般都是生成pof,使用AS接口进行固化. 手头有个板子,只有JTAG接口,折腾半天,记录一下. 首先需要感谢一下  石头弟弟的帖子,详见关于怎么将Quartus和Nios程序一起 ...

  10. [NIOS] 如何Erase EPCS flash內容

    以下資料是給我自己做個以後查詢使用. ================================================== 手動清除EPCS內的資料步驟: 1. 先開啟 Nios II ...

最新文章

  1. iframe 父页面与子页面之间的方法的相互调用
  2. HTTP协议和web工作原理
  3. java 子类中this,请问子类中的构造方法中 this(name,beijing,school);是啥意思
  4. CentOS7部署NFS
  5. 认识学习网络布线与数制转换
  6. 什么是计算机领域的实时系统
  7. maven之阿里云Maven镜像的使用
  8. mybatis数据库数据分页问题
  9. xp电脑怎么进入bios
  10. 红帽:将开源进行到底!
  11. 【图文详解】,配置NLB群集
  12. 汇编语言二进制转十进制_汇编语言笔记(一)——基础知识
  13. 仿高德地图点亮城市html,高德地图怎么点亮城市_高德地图点亮城市教程_3DM手游...
  14. javase学习——面向对象(下)
  15. 浅谈互联网券商港股美股证券交易软件开发如何实现
  16. android 源代码 毛笔,Android-毛笔的探索与开发
  17. 英语构词法-learning
  18. steam怎么设置邮箱令牌_steam收不到邮箱令牌验证码怎么办 这些知识你不一定知道...
  19. 站内通知 java组件,spring-aop组件详解——Advice通知
  20. 肖秀荣8套卷2018pdf下载|2018肖秀荣冲刺8套卷pdf下载电子版

热门文章

  1. 联想智能云教室安win7_用“联想智能云教室”部署系统完成后,操作卡顿?
  2. 【Web开发】HTML颜色代码表
  3. Embarcadero.ERStudio安装
  4. 高德地图全解析--定位篇
  5. IDEA插件系列(41):Code Reading Note插件——代码阅读笔记
  6. 银联支付,实现代码对接
  7. python调用windows aplication
  8. Java获取名字首字母拼音及用户按名字拼音分组工具
  9. 旧视频调整为4k视频提高分辨率Topaz Video Enhance AI
  10. BP算法(神经网络基础+BP算法推导+BP算法举例+java代码实现+Python代码实现+局限性)