Forum Discussion
Altera_Forum
Honored Contributor
16 years agoYAY - it works now :D
Following advice did the trick: --- Quote Start --- check that the files produced by sopc / wizzard & co have this filename and it is located within the root of your project. --- Quote End --- I was looking for it in the <project_name>_sim (as suggested by Altera documentation) and that is where I put my .hex aswell. No wonder the sof remained the same - the silliest of mistakes --- Thanks a lot man, appreciate it !! The procedure is summarized below in case anyone else with the same problem passes by: 1. Enable the "Non-default memory initialization" option from the SOPC builder and it will show you a name of the hex file. Remember that name as u will need a hex of the same name. 2. Generate the SOPC system, and recompile the Quartus design. The hex file will be generated in the root of your design. Use the new ptf in your Nios design to generate the new elf. 3. Use elf2hex to convert this elf to hex (use the base, end address and width entries from your SOPC system) 4. Copy/paste this in the root of your project (if youe hex has a different name then change the name of the hex file to the one used in the SOPC system for the mem init file) 5. You can save a lot of time by not re-compiling the design, just use the following two commands: quartus_cdb --update_mif <your quartus project name>.qpf quartus_asm <your quartus project name>.qpf and a new sof will be generated with the elf contents inside !! Burn awaaayy....