Hi Fathulnaim,
I am encountering this error "Error (16031): Current Internal Configuration mode does not support memory initialization or ROM. Select Internal Configuration mode with ERAM." during compilation.
These are the steps I took.
1) Open the same proj.qsys file that you have given to me.
On the On-Chip Flash IP, select "Single Uncompressed Image" and uncheck initialize flash content.
On the On-Chip Memory IP, uncheck initialize memory content. (If I check this, I will have another error "Error (14703): Invalid internal configuration mode for design with memory initialization" during compilation. So I intend to uncheck first, after I generate the hex file, I will check it and check enable non-default initialization file.)
2)Generate proj.qsys and in Quartus, under Assignments -> Device -> Device and Pin Options -> Configuration Mode, select Single Uncompressed Image. Compile project
3)Open Nios II Eclipse, and create new NIOS II application and BSP template. Build the project. Edit the makefile to remove the errors generating elf. Build the project again, and import source code.
4)Load the .sof file using quartus and then run Nios II Hardware Configuration in debug mode to load .elf file. Ensure that Tx and Rx is blinking continuously and able to receive SPI signals continuously.
5)Generate .hex file by running mem_init_generate using Nios II Eclipse.
6)Reopen proj.qsys file in system designer of Quartus, and on the On-Chip Memory IP check initialize memory content and check non-default initialization file. Under User created initialization file: point to the new location of the .hex file in the mem_init folder.
7)Compile project in Quartus and I receive the error "Error (16031): Current Internal Configuration mode does not support memory initialization or ROM. Select Internal Configuration mode with ERAM."
Please advice whether is there anything wrong with my steps.
Regards,
Reuben Goh