Forum Discussion
Altera_Forum
Honored Contributor
9 years agoYou need the --epcs to specify it is a EPCS/EPCQ rather than CFI flash.
For example: $nios2-flash-programmer "REMOTE_epcq_controller_0_avl_mem.flash" --base=0x0 --sidp=0x2081060 --id=0x55 --timestamp=1469019010 --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-0]' --program --verbose --erase-all You also could use this for testing $ nios2-flash-programmer --epcs --base=0 --debug I hope you do not get "No EPCS registers found" kind of errors. see below. Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK Processor data bus width is 32 bits Looking for EPCS registers at address 0x00000000 (with 32bit alignment) Initial values: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF Not here: reserved fields are non-zero Looking for EPCS registers at address 0x00000100 (with 32bit alignment) Initial values: FFFF8F98 FFFFAF1B FFFFAF90 FFFFCFF2 FFFFEF19 FFFF2F18 Not here: reserved fields are non-zero Looking for EPCS registers at address 0x00000200 (with 32bit alignment) Initial values: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF Not here: reserved fields are non-zero Looking for EPCS registers at address 0x00000300 (with 32bit alignment) Initial values: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF Not here: reserved fields are non-zero Looking for EPCS registers at address 0x00000400 (with 32bit alignment) Initial values: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF Not here: reserved fields are non-zero No EPCS registers found: tried looking at addresses 0x00000000, 0x00000100, 0x00000200, 0x00000300 and 0x00000400 Leaving target processor paused