jefflieu,
We do in-system programming all the time to the FPGA flash, specifically, Altera's EPCS flash connected to FPGA via Active Serial port. The RPD file is the correct format to use with the SRunner (or JRunner, something like that.) There may be other format you can use but RPD is what we use with the SRunner so it should work. You're on the right track so just need to debug why RPD not working for you.
Don't worry about all the different file formats that Altera has. Different tool/utility uses different input file format. If you're using SRunner then the input file format for that tool is RPD (and maybe some other file.) It'll tell you in the documentation.
The JIC file is typically used when you have cable connected to JTAG and using Serial Flash Loader to program flash indirectly, and the POF file is used when you have ByteBlaster connected to flash directly, and the RBF is just the raw bitstream. (Typically with RBF you may have to do byte swapping before can be used to program FPGA.)
--- Quote Start ---
Thank you dwesterg and Boris,
That is really helpful,
I've tried the rpd file but it doesn't work, seems like i have to send LSB first according to the SRunner document.
I'm really confused and afraid to use rbf as the document stresses that there's some header at the front of rpd and that rpd and rbf are different.
I really don't understand why there'are so many files format (jic, pof, rpd...) , Ultimately we want the RBF to be inside the flash and FPGA just issues DCLK and read data back ... !!!
Thank you. I'll try tomorrow!
--- Quote End ---