--- Quote Start ---
Have a look at the messages you get :
it could be that the fpga has no nios configuration during your try to access the flash via command line, in fact the fpga could be empty or has a design without a nios core inside
or ...
as you use the -timestamp option, the fpga has a different image inside than the one you specified
for the first possible cause. load the expected fpga image and the try again to programm the flash, for the second cause, update the fpga image or the timestamp value or remoce the timestamp option.
--- Quote End ---
i had run the .sof and do the SOPC builder in Quartes II..after that only i do the c programming in NIOS II and faced the problem that i mention earlier..
this were my steps:
1)create new project by open verilog coding
2)run the programme and assign pin
3)tool-programmer:run the .sof file
4)create sopc builder
5)create c programming in NIOS II and face problem to flash the programme..
1st cause:how can i load the expected fpga image?
2nd cause:how can i do the update?