Hi, I want to program the flash memory directly, only the elf file from the nios without changing the .sof file and prevent the long compilation of the quartus in order to combine the elf and sof. If I change only the C source There is any way to program only the changing of the nios program into flash memory (outside of the ALTERA) and in power cycle the FPGA will loaded with the same .sof file but with new .elf fille?
yes you can do this. First what kind of flash you are using? if I have the sof and the Hex (code) I can create a JIC or POF file to program the flash. Then you can update the code only (HEX). BTW you must notice that changing in Qsys design requires re-compiling the design and updating the Code based on the new .sopcinfo file. If you just need to change the software (HEX) it is OK no nee to recompile the design on Quartus.
Thanks for the fast answer,
I know when I change the qsys file I need to recompile, But in my case I change only the HEX (C Source in NIOS).
I have this flash memory: W25Q32JVSSI.
Please guide me how to load the changing of the hex file only.
To update the HEX you have two ways:
1st is to create the a new .pof file with the sof and the new HEX and then load it to the flash
2nd is to use remote system upgrade (RSU). This is quite complex, here you can find some useful examples: