--- Quote Start ---
Hi lodentoni,
You can change the target cofiguration device in Quartus, Assignments->Device->Device and Pin Options->configuration->configuration device ... (needs recompilation).
Best Regards,
laland
--- Quote End ---
--- Quote Start ---
The --device=EPCS128 isn't actually relevant, I've seen it used on all EPCS devices. I think Altera should just rename it to --device=EPCS ;)
--- Quote End ---
Hi Laland, i tried this but it still shows the EPCS128 as device.
--- Quote Start ---
Looking at your log I see a more interesting error:
Info: Reading System ID at address 0x00022080:
Info: ID value does not match: read 0x0000000D; expected 0x00000013
Info: Timestamp value was not verified: value was not specified
This indicates that the image currently in the FPGA isn't what the programmer expects. As it is still trying to flash the EPCS anyway, it probably means that you disabled the system ID check in Eclipse. This isn't recommended. If the the system ID check is enabled, when you have a system ID error then you will just get an error message and the flash programmer will stop, which is better.
So now you need to figure out why you don't have the expected image. You need to be sure that the .sof image currently in your FPGA corresponds to the .sopcinfo file that was used to generate the BSP. Each time you do a change in the QSYS/SOPC builder system, after regeneration you need to recompile the Quartus project and regenerate the BSP. Then upload the new .sof file to the FPGA and you can use the Nios flash programmer.
--- Quote End ---
Now i am a little bit confused. I thought the flash programmer brings the fpga configuration and the software image into the epcs device. I disabled the SystemID check because i know that the fpga was not configured.
Do you mean i have to configure the fpga with quartus device programmer and than use the flash programmer to to write fpga configuration and software data into the epcs? I tried this and it does not work.
The next thing i tryed is to use the quartus device programmer to write the fpga configuration into the epcs device (without software image). Then i reset the fpga and try to use the flash programmer. This time it detects the correct SystemID (because the fpga is configured) but it seems that a problem exist on detecting the epcs device:
Info: Info: *******************************************************************
Info: Info: Running Quartus II 32-bit Convert_programming_file
Info: Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/flash/NIOS_SYSTEM_epcs.opt Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/NIOS_SYSTEM.sof Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/flash/NIOS_SYSTEM_epcs.pof
Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings
Info: Info: Peak virtual memory: 126 megabytes
Info: Info: Processing ended: Thu Apr 18 10:31:27 2013
Info: Info: Elapsed time: 00:00:06
Info: Info: Total CPU time (on all processors): 00:00:02
Info: Info: *******************************************************************
Info: Info: Running Quartus II 32-bit Convert_programming_file
Info: Info: Command: quartus_cpf --no_banner --convert Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/flash/NIOS_SYSTEM_epcs.pof Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/flash/NIOS_SYSTEM_epcs.rpd
Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings
Info: Info: Peak virtual memory: 126 megabytes
Info: Info: Processing ended: Thu Apr 18 10:31:38 2013
Info: Info: Elapsed time: 00:00:10
Info: Info: Total CPU time (on all processors): 00:00:02
Info: Using cable "USB-Blaster ", device 1, instance 0x00
Info: Resetting and pausing target processor: OK
Info: Reading System ID at address 0x00022080: verified
Info: No EPCS layout data - looking for section
Info: Unable to use EPCS device
Info: Leaving target processor paused
Error: Error code: 8 for command: $SOPC_KIT_NIOS2/bin/nios2-flash-programmer "Y:/TLK2711-SP/Terasic_DE0/NIOS_SYSTEM/flash/NIOS_SYSTEM_epcs.flash" --base=0x21800 --epcs --sidp=0x22080 --id=0x16 --timestamp=1366205590 --device=1 --instance=0 '--cable=USB-Blaster on localhost ' --program