新建一个文本文档,命名为nios2-flash-override.txt
在这个文本文档中添加如下:
[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
保存文档,然后将其复制到nios的安装程序的bin目录下面就OK了 altera\10.0\nios2eds\bin;
将上述错误改为
[EPCS-FF] # EPCS16N (lead-free)
sector_size = 65536
sector_count = 32
比如报错为:"No EPCS layout data - looking for section [EPCS-EF3013]"
那么应该添加的代码则为
[EPCS-EF3013] # EPCS16N (lead-free)
sector_size = 65536
sector_count = 8