Hi Alex,
Thank you very much for your reply. I really need your help.
I access the flash indirectly via JTAG, and I don't have a dedicated AS programming header. When I program the serial flash, I open the nios2eds shell, and using sof2flash and elf2flash to convert the sof/elf files to .flash format. There is a nios core inside sof, so I use nios2-flash-programmer to write the .flash files into the serial flash after nois2-configure-sof.
I am using M25P32 to replace M25P16 for remote update function. When I use M25P16, everything goes well. I can program the flash with nios2-flash-programmer, and read/refresh it with altera epcs driver. But when I change to M25P32, all the tools cannot recognize it. I note there isn't EPCS32 in Altera's flash series. I don't know whether it is the reason.
I am sorry for my poor English. Thanks again.
Derek