Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi,
if you would like to have your Nios code in the programming file, you have to have a on chip rom (maybe a ram will work, too) and you have to check the "Enable non-default initialization file" option in your SOPC on chip rom module. You have to make sure that the Nios II IDE creates a *.hex file named according to the field "User-created initialization file". If all your settings in SOPC are okay (reset vector, etc.) then it should work after you re-generated your SOPC system and recompiled your Quartus project. After recompilation of your Quartus project, the Nios program should be also in your *.sof file. The basic steps are as follows: 1. Build your SOPC sytsem with onchip ROM and enable the "Enable non-default initialization file" option. 2. Generate your SOPC system. 3. Create a Nios II IDE project based on the just generated SOPC system. 4. Build your Nios II IDE project and make sure that the *.hex file according to your "User-created initialization file"-name was created. 5. Go back to SOPC and regenerate the system that now includes your *.hex. 6. Implement your SOPC sytsem in a Quartus project and compile this to get your *.sof and *.pof files. This is the way I do it. Maikpraveenkumar
Occasional Contributor
4 years agoHello,
while combining the hex and sof files there is an error commin in hex filr memory overlaps between address 0 and 8.
can u suggest where to store it in memory locations of hex and sof files.
pls help me with thi