Thank you xiwen :)
Today I tried to burn the flash with Nios II flash programmer,I specified my .sof file and the offset 0x20000,then programm.I got the message below:# !/bin/sh# # This file was automatically generated by the Nios II IDE Flash Programmer.# # It will be overwritten when the flash programmer options change.#
cd D:/Copy_of_cosmic_2009/software/simple_socket_server_6/Debug
# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0x20000 --input="D:/Copy_of_cosmic_2009
/cosmic_top.sof" --output="cosmic_top.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert D:/Copy_of_cosmic_2009/cosmic_t
op.sof cosmic_top.rbf
Info: Using INI file c:/altera/81/quartus/bin/quartus.ini
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 76 megabytes
Info: Processing ended: Fri Feb 26 11:58:16 2010
Info: Elapsed time: 00:00:01
Info: Total CPU time (on all processors): 00:00:00
# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x01000000 --sidp=0x02203d48
--id=2052607805 --timestamp=1239120610 --instance=0 "cosmic_top.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x02203D48: verified
: Checksumming existing contents
00020000 : Reading existing contents
00040000 : Reading existing contents
00060000 : Reading existing contents
00080000 : Reading existing contents
000A0000 : Reading existing contents
000C0000 : Reading existing contents
Checksummed/read 67kB in 1.9s
00020000 ( 0%): Erasing
00040000 (16%): Erasing
00060000 (33%): Erasing
00080000 (50%): Erasing
000A0000 (66%): Erasing
000C0000 (83%): Erasing
Erased 768kB in 5.0s (153.6kB/s)
00020000 ( 0%): Programming
00040000 (16%): Programming
00060000 (33%): Programming
00080000 (50%): Programming
000A0000 (66%): Programming
000C0000 (83%): Programming
Programmed 702KB +66KB in 28.2s (27.2KB/s)
Device contents checksummed OK
Leaving target processor paused
Seems actually the GUI just use two commands,one is for generating a flash file,and one is for programming the flash.The problem is after I switch off and on, I tried to run my software on the board but failed, seems like I didn't really burn the flash successfully.Are there any problems about the two commands?