Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTerasic DE2-115 Flash programming
Good morning, Have been developing FPGA and NIOS-based SW for DE2-115 using USB blaster to load SOF and elf files for debugging. Now want to permanently program FPGA and FLASH. Have been ...
Altera_Forum
Honored Contributor
14 years agoYes, I did...I use SOPC builder, so the instructions are specific to it rather than QSys
1) In SOPC builder modify your CPU component so the reset vector is set to CFI flash. 2) Generate the SOPC 3) Generate your system in Quartus. 4) In Eclipse, go to the BSP, right click and select BSP Editor 5) On the Main Tab, select Settings->Advanced->hal->linker. You'll see 5 components (allow_code_at_reset, enable_alt_load, enable_alt_load_exceptions, enable_alt_load_copy_ro_data, enable_alt_load_copy_rw_data). Disable ALL of these. 6) On the Linker Script Tab, ensure that your reset linker region is set to cfi_flash and all linker sections are set to sdram. 7) Regenerate your BSP 8) Load the ELF using the FLASH programmer. If you look at Chatper 2 of the NIOS SW Manual, it goes into the details. My experience with Altera tools is only about 6 months. I have found that the information is there. However, it is sometime a challenge for a newbie to dig it out. I'm sure the Altera Gurus know the documentation inside and out. Hope this helps, ME