This is the script generated by Eclipse nios Flash programmer.
If I launch it gives the following.
Is the quartus_cpf --no_banner --convert --device=EPCS128....referred in the first lines ok ? I use an EPCS16 ?
After the script finishes I press reset and programm is running ok.
But if I cycle power not starts any more. I noticed also that after cycle power nios2 is absent!
Thank you for your time!
/cygdrive/d/ep2c8/script
[NiosII EDS]$ ./flash_programmer.sh
Jan 19, 2010 1:47:29 AM - (FINE) sof2flash: Starting
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=D:/ep
2c8/flash/2c8_TRH_epcs.opt D:/ep2c8/2c8_TRH.sof D:/ep2c8/flash/2c8_TRH_epcs.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 69 megabytes
Info: Processing ended: Tue Jan 19 01:47:31 2010
Info: Elapsed time: 00:00:01
Info: Total CPU time (on all processors): 00:00:01
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert D:/ep2c8/flash/2c8_TRH_epcs.pof
D:/ep2c8/flash/2c8_TRH_epcs.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 68 megabytes
Info: Processing ended: Tue Jan 19 01:47:34 2010
Info: Elapsed time: 00:00:02
Info: Total CPU time (on all processors): 00:00:02
Jan 19, 2010 1:47:35 AM - (FINE) sof2flash: Done
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x00001898: verified
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x00000000 (with 32bit alignment)
Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x00000100 (with 32bit alignment)
Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x00000200 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
EPCS signature is 0x14
EPCS identifier is 0x202015
Using EPCS size information from section [EPCS-202015]
Device size is 2MByte (16Mbit)
Erase regions are:
offset 0: 32 x 64K
EPCS status is 0x00
: Checksumming existing contents
00000000 : Verifying existing contents
00000000 : Needs erase then program
00010000 : Verifying existing contents
00010000 : Needs erase then program
00020000 : Verifying existing contents
00020000 : Needs erase then program
00000000 : Reading existing contents
00010000 : Reading existing contents
00020000 : Reading existing contents
Checksummed/read 49kB in 1.1s
00000000 ( 0%): Erasing
00010000 (33%): Erasing
00020000 (66%): Erasing
Erased 192kB in 1.9s (101.0kB/s)
00000000 ( 0%): Programming
00010000 (33%): Programming
00020000 (66%): Programming
Programmed 144KB +48KB in 4.5s (42.6KB/s)
Did not attempt to verify device contents
Leaving target processor paused
Jan 19, 2010 1:47:45 AM - (INFO) elf2flash: args = --input=D:/ep2c8/software/THP
/THP.elf --output=D:/ep2c8/flash/THP_epcs.flash --epcs --after=D:/ep2c8/flash/2c
8_TRH_epcs.flash --verbose
Jan 19, 2010 1:47:45 AM - (FINE) elf2flash: Starting
Jan 19, 2010 1:47:45 AM - (FINER) elf2flash: Program Record: 71264 bytes destine
d for 0x2000020
Jan 19, 2010 1:47:45 AM - (FINER) elf2flash: Start Record: 20001c4
Jan 19, 2010 1:47:45 AM - (FINE) elf2flash: Done
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x00001898: verified
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x00000000 (with 32bit alignment)
Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x00000100 (with 32bit alignment)
Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x00000200 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
EPCS signature is 0x14
EPCS identifier is 0x202015
Using EPCS size information from section [EPCS-202015]
Device size is 2MByte (16Mbit)
Erase regions are:
offset 0: 32 x 64K
EPCS status is 0x00
: Checksumming existing contents
00020000 : Verifying existing contents
00020000 : Needs erase then program
00030000 : Verifying existing contents
00030000 : Needs erase then program
00020000 : Reading existing contents
00030000 : Reading existing contents
Checksummed/read 59kB in 1.5s
00020000 ( 0%): Erasing
00030000 (50%): Erasing
Erased 128kB in 1.3s (98.4kB/s)
00020000 ( 0%): Programming
00030000 (50%): Programming
Programmed 70KB +58KB in 2.0s (64.0KB/s)
Did not attempt to verify device contents
Leaving target processor paused
/cygdrive/d/ep2c8/script