Forum Discussion
Altera_Forum
Honored Contributor
13 years agohi......
if i understand you have a project with soc system running....... you need to write a .sof and .elf in your cfi_flash .....ok??? to write you need to convert the .sof and .elf in .flash files at nios2 command shell and in your project directory you need to do sof2flash --input=(your.sof) --output=(name.flash) --offset=(initial offset) --verbose your.sof = your project name.flash = the file generated initial offset = this is the offset of the flash memmory ...this is a data sheet parameter , i use 0x10000 at my flash and write your.flash nios2-flash-programmer --base=(your flash base addres) your.flash --verbose this write the .flash to convert the .elf elf2flash --after=(your.flash) --input=(your.elf) --output=(nios.flash) --boot=bootLoader_cfi.srec the bootloader file is at your quartus directory -> /altera/11/IP/ALTERA/NIOS2_IP/ALTERA_NIOS2/bootloader_cfi.srec remember to set up your RESET VECTOR in qsys write at nios2 command shel is very fast... cheers Franz