Altera_Forum
Honored Contributor
12 years agonios2-download on command line not working
I am attempting to use the demo project for the DE3 DDR2 example.
Whenever the batch file (contents listed way below) gets to the line nios2-download, it gives errors about the command. I tried running it in cygwin (my install) as well as its batch file which calls the nios version of cygwin but it gives the same errors: Any clues on what's going on? /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 2: $'\r': command not found /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 4: $'\r': command not found /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 15: $'\r': command not found /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 17: $'\r': command not found /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 23: $'\r': command not found /cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 25: syntax error near unexpected token `$'{\r'' 'cygdrive/c/altera/13.0sp1/nios2eds/bin/nios2-download: line 25: `{ $ more de3_ddr2.bat %QUARTUS_ROOTDIR%\\bin\\quartus_pgm.exe -z -m JTAG -c USB-Blaster[USB-0] -o "p;DE3_DDR2.sof" @ "%QUARTUS_ROOTDIR%\bin\cygwin\bin\bash.exe" --rcfile ".\de3_ddr2_bashrc" pause