如何解决No EPCS layout data --- looking for section [EPCS-XXXXXX]

时间:2022-05-22 15:11:51

在用NIOS的flashprogram对EPCSx进行烧录程序时,出现了No EPCS layout data --- looking for section [EPCS-XXXXXX]的错误,在网上查找了一下,解决办法如下。


        1、首先在<nios2_install>/bin文件夹下面新建nios2-flash-override.txt文件;

        2、输入下述代码,下面描述的器件都是Altera的EPCS器件,sector_size表示sector大小,sector_count表示sector个数;
        [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


        3、在上述代码中添加自己选择的通用SPIFlash,例如:
        [EPCS-1C2017]  # EPCS64N (Eon-lead-free)
        sector_size = 65536
        sector_count = 128

 

sector_size和sector_count可以从所用的FLASH手册查找。