I am having the same issue with an EPCS64N. I have two boards running identical .sof loads - one works and returns this from nios2-flash-programmer:
Looking for EPCS registers at address 0x30000400 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
epcs signature is 0x16 EPCS identifier is 0x202017
Using EPCS size information from section [EPCS-202017]
Device size is 8MByte (64Mbit)
Erase regions are:
offset 0: 128 x 64K
EPCS status is 0x00
The other fails and returns this:
Looking for EPCS registers at address 0x30000400 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
epcs signature is 0xff EPCS device doesn't support RDID command
No EPCS layout data - looking for section [EPCS-FF]
Unable to use EPCS device
Leaving target processor paused
Does anybody know why an identical (in theory) circuit and device would return a signature of 0xFF? I have replaced the EPCS64N - same result. I checked the DCLK, DATA, nCS, and ASDI signals with a scope and all look good and similar between boards.
Are there bad devices floating around? (These were purchased from DigiKey - an authorized Altera distributor.)