Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIf you just want to download the ELF to the FPGA, try creating a batch file using notepad with the lines between the start and end comments. Do not include the start and end comments. Then using notepad create a elf_downloader file with no extension using the lines between the start and end comments. Do not include the start and end comments.
Put all files in a temporary folder: YOUR_BATCH_FILE.BAT YOUR_ELF_FILENAME.ELF, YOUR_SOF_FILENAME.SOF, elf_downloader You probably will also have to create the system variable: Step1: Go to Control Panel Step2: Go to System Step3: Go to the Advanced System Properties Step4: Go to the Advanced Tab Step5: Go to Environment Variables Step6: Press the "New" button Step7: Enter the Variable Name and Value below: Variable Name: SOPC_KIT_NIOS2 Variable Value: C:\Altera\10.1sp1\nios2eds (your path may be different) Lastly, Double click the batch file. ******************batch file start***************** @echo off @ set SOPC_BUILDER_PATH=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH% @ %QUARTUS_ROOTDIR%\bin\quartus_pgm -m jtag -c USB-Blaster[USB-0] -o "p;YOUR_SOF_FILENAME.sof" pause @ %QUARTUS_ROOTDIR%\bin\cygwin\bin\bash.exe --rcfile elf_downloader pause @echo on ******************batch file end***************** ******************elf_downloader file start******* . $QUARTUS_ROOTDIR/sopc_builder/bin/nios_bash alias nb=nios2-build alias nios-build=nios2-build alias nr=nios2-run alias nios-run=nios2-run alias nd=nios2-debug alias nios-debug=nios2-debug alias nc=nios2-console alias nios-console=nios2-console nios2-download -c USB-Blaster [USB-0] YOUR_ELF_FILENAME.elf -g nios2-terminal -c USB-Blaster [USB-0] exit ******************elf_downloader file end*******