Hey thank you!!
So in my Qsys system I only need to insert an external SDRAM interface module as far as the memories are concerned. I shouldnt insert an on chip ram for the heap and stack as they will be included inside the same external SDRAM.
The copying of the program from the flash to the RAM (boot loader) is done by Nios? If so should I include an EEPROM memory interface inside the Qsys system? (I am using the DE0-Nano board so I have a 32MB external SDRAM, an external 2KB I2C EEPROM and a non-accessible from user code 16MB EPCS EEPROM)