Hi Cris,
Thank you for the response. I want to know one more thing. The include files, and drivers (for LCD display which I am using) might need quite a bit of space. All this will be part of the executable software code. Will there be sufficient space in the on-chip RAM for accomodating all this. My system is pretty small - just the most basic NiosII core, an LCD display and on-chip memory. Do you have any white paper / application note for generating a single .pof file for both the hardware and software images.
One more doubt: upon power up, once the hardware and software images are loaded, what is that "thing" which makes the NiosII processor execute the code residing in on-chip memory.
thanks and regards,
rajesh
--- Quote Start ---
Sure it's possible.
There are usually two ways to run Nios code from configuration device (i.e. not booting with jtag)
The first one is what you are asking for. The code resides in onchip ram and is loaded together with fpga configuration. To do this you must convert the Nios software elf output into a hex file which is then assigned to onchip ram as memory initialization file.
The disadvantage of this method is that it requires a Quartus recompilation (actually only a MIF update is needed) whenever you change the Nios program.
Usually you may want to store Nios software separately into the epcs, so you can update it without changing the fpga image file. In this case you need a bootloader which loads program data from epcs into onchip ram (or sram, or sdram or whatever) just after fpga configuration has been loaded and activated. The standard epcs controller core already provides a boot-loader feature.
--- Quote End ---