if i create a *.jic file using quartus i can flash my epcs.
if i try to flash the epcs using the nios2 shell i get an error:
$ sof2flash --epcs --input=FPGA.sof --output=FPGA.flash
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=FPGA.
opt FPGA.sof FPGA.pof
Info: Using INI file c:/altera/90/quartus/bin/quartus.ini
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 78 megabytes
Info: Processing ended: Thu Sep 10 07:34:48 2009
Info: Elapsed time: 00:00:09
Info: Total CPU time (on all processors): 00:00:04
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert FPGA.pof FPGA.rpd
Info: Using INI file c:/altera/90/quartus/bin/quartus.ini
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 72 megabytes
Info: Processing ended: Thu Sep 10 07:35:00 2009
Info: Elapsed time: 00:00:11
Info: Total CPU time (on all processors): 00:00:05
$ nios2-flash-programmer --epcs --base=0x2000 --instance=1 FPGA.flash
Using cable "USB-Blaster ", device 1, instance 0x01
Resetting and pausing target processor: OK
No EPCS registers found: tried looking at addresses
0x00002000, 0x00002100, 0x00002200, 0x00002300 and 0x00002400
Leaving target processor paused
and yes my epcs is at that address:
#define EPCS_CONTROLLER_NAME "/dev/epcs_controller"# define EPCS_CONTROLLER_TYPE "altera_avalon_epcs_flash_controller"# define EPCS_CONTROLLER_BASE 0x00002000
any ideas? :)