Forum Discussion
Altera_Forum
Honored Contributor
17 years agohow to write a override file?
hi,
when i use nios2-flash-programmer --base=0 --debug ,i get the CFI Table,and i copy the table to a overrride.txt file.when programmed ,it gives a report erase region don't match the device. and i revised the override.txt with [FLASH-00BF-2781]# Keyword FLASH, followed by the Mfgr ID and Device ID# These ID values can be found in three ways:# - by consulting the flash memory device's data sheet.# - by using the "autoselect" command# - by running nios2-flash-programmer --debug CFI[0x13] = 0x02# The primary command set, found at CFI table - CFI[0x14] = 0x00# addresses 0x13 and 0x14 are overridden to 0x02, 0x00. CFI[0x2C] = 0x01# The number of CFI Erase block regions, found at # CFI table –address 0x2C is overridden to 0x1. and it works when erase,but cannot programme the flash what is A override file format? is there any referrence?1 Reply
- Altera_Forum
Honored Contributor
the file is called "nios2-flash-override.txt"
for EPCS devices you would add [EPCS-010216]# EPCS64N (Spansion-lead-free) S25FL064A0LMFI001 sector_size = 65536 sector_count = 128 The Spansion datasheet for this device says Manufacture Identification 01h Memory Type 02h Memory Capacity 16h putting all these informations together delivers 010216 if the nios2 flash programmer uses the override file then it would tell you as you use the --debug option. According to http://www.altera.com/literature/ug/ug_nio..._programmer.pdf (http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf) the procedure is nearly the same as you added exactly the example from the altera document. This example is for the SST 39VF800 do you have this device ?