Hi frank2215,
The fact that the nios2-flash-programmer found some valid registers @0x00021400 is a good sign.
It appears that that the programmer can't read the ID of the flash IC being used in order to know it's geometry. When I ran into this problem with a 8 MB serial flash IC, the programmer told me I needed to create section [EPCS-010216].
I ended up creating an override file ("nios2-flash-override.txt") and stored it on my system @
c:\altera\14.1\nioseds\bin. This override file contained the following:
[EPCS-010216]
sector_size - 65536
sector_count = 128
Once I did that, the nios2-flash-programmer recognized my device at the address for the valid registers (which was 0x400 in my case) and I was able to program it.
It sounds like you device ID isn't recognized so you might have to create a section in the override file called [EPCS-FF] with he proper sector size and sector count values for your device. You should be able to find these values from the datasheet for your flash.
Let us know if that helps or if you continue to run into other problems.
- Brad