Altera devices have EPCs series configuration devices, in fact, these configuration devices are our usual general spiflash, according to Alterafae description: "EPCs device is also selected a company's Spiflash, only in the middle through Altera company's rigorous testing, So stability and durability are more than the general Spiflash ". In my opinion, most of the stability of semiconductor is caused by its own design flaws, and the mature manufacturing process will not cause product instability, and now Altera's device can read the configuration data error, the data inside the Spiflash may be re-read, Therefore, the stability of the process and the reliability of the design of the double guarantee, by choosing a common spiflash to reduce the cost of the product pressure.
Assuming that we are using a normal spiflash, open the Nios II Command shell window and download the ***.flash file using the Nios2-flash-programmer commands, the following error occurs:
No EPCS Layout Data---Looking for section [epcs-1c2017]
The spiflash of different companies have different IDs, and the sector size and number of Flash are different, so we need to create a new document to illustrate the data:
1, first in the <nios2_install>/bin folder under the new Nios2-flash-override.txt file;
2, enter the following code, the devices described below are Altera EPCs devices, sector_size represents sector size, Sector_count represents the number of 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. Add the generic Spiflash of your choice in the code above, for example:
[epcs-ef4015] # epcs16n (lead-free)
Sector_size = 65536
Sector_count = 32
4, then use the Nios2-flash-programmer command to download the ***.flash file, you can download the Spiflash.
Using Winbond's SPI Flash as EPCs curing Nios II software error and solution