Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
1,056 Views

DE2-115 demonstrations: "nios2-download: command not found"

I just bought a DE2-115, installed Quartus 11.0sp1 (and NIOS). 

USB blaster shows up in USB devices and it responds to ControlPanel.exe (only the win7 64 bit version). Host is Windows 7 32bit. 

 

The IR demonstration loads and runs fine (DE2 responds to remote control). 

But other demo produces the following errors: 

 

------------------------------------------------- 

Altera Nios2 Command Shell [GCC 3] 

Version 11.0sp1, Built Mon Jul 4 01:29:34 PDT 2011 

------------------------------------------------- 

bash: nios2-download: command not found 

bash: nios2-terminal: command not found 

 

I have added Quartus bin directory to the path e-var, no difference. 

Any help would be greatly appreciated!
0 Kudos
7 Replies
Highlighted
Valued Contributor III
27 Views

It`s may be you do not change the workspace , you can try it . You should look over the workpath of QuartusII and NiosII .

0 Kudos
Highlighted
Valued Contributor III
27 Views

I have the same problem . I tried switching the workspace from NIOSII IDE but it didn't work.

0 Kudos
Highlighted
Valued Contributor III
27 Views

 

--- Quote Start ---  

I have the same problem . I tried switching the workspace from NIOSII IDE but it didn't work. 

--- Quote End ---  

 

 

Same here on two different machines under Windows 7 (32 bit and 64 bit).
0 Kudos
Highlighted
Valued Contributor III
27 Views

I've done now a pretty dirty hack - and perhaps get other problems somewhere. I simply do not see at this early stage, how this works all together. 

 

I changed the file "nios_bash" in around line 96 from (version from 11.1sp2): 

 

PATH="/bin:/usr/bin" 

 

to 

 

PATH="/bin:/usr/bin:/cygdrive/d/altera/11.1sp2/nios2eds/bin:/cygdrive/d/altera/11.1sp2/nios2eds/bin/fs2/bin:/cygdrive/d/altera/11.1sp2/nios2eds/bin/gnu/H-i686-mingw32/bin" 

 

and now the demonstrations batch files seem to run. please notice the fixed drive name /d/ in those paths, which is due to my installation.
0 Kudos
Highlighted
Valued Contributor III
27 Views

you can use emeditor or word pad open the xxx.bat than replace @ set SOPC_BUILDER_PATH_xx=%SOPC_KIT_NIOS2%+%SOPC_BUILDER_PATH_xx% 

to @ set SOPC_BUILDER_PATH=%SOPC_KIT_NIOS2%+SOPC_BUILDER_PATH%
0 Kudos
Highlighted
Valued Contributor III
27 Views

Thank you Feldti, your tip works.

0 Kudos
Highlighted
Valued Contributor III
27 Views

 

--- Quote Start ---  

Thank you Feldti, your tip works. 

--- Quote End ---  

 

Thanks a lot Feldti 

 

It works! 

 

I modify the file named: nios_bash  

 

in two lines here is what i do: 

 

 

 

PATH_BEFORE_NIOS_BASH=$PATH 

export PATH_BEFORE_NIOS_BASH 

 

# Before ---> PATH="/bin:/usr/bin"# After ---> 

PATH="/bin:/usr/bin:/cygdrive/c/altera/10.1/nios2eds/bin:/cygdrive/c/altera/10.1/nios2eds/bin/fs2/bin:/cygdrive/c/altera/10.1/nios2eds/bin/gnu/H-i686-mingw32/bin:$PATH"# If ModelSim is in the path, let's keep it before we rebuild PATH 

vsimpath=`which vsim 2> /dev/null` 

[ $? != 1 ] && msim_path=`dirname $vsimpath` 

unset vsimpath 

 

# Before ---> PATH="/bin:/usr/bin"# After ---> 

PATH="/bin:/usr/bin:/cygdrive/c/altera/10.1/nios2eds/bin:/cygdrive/c/altera/10.1/nios2eds/bin/fs2/bin:/cygdrive/c/altera/10.1/nios2eds/bin/gnu/H-i686-mingw32/bin:$PATH" 

 

 

I only add the line 

PATH="/bin:/usr/bin:/cygdrive/c/altera/10.1/nios2eds/bin:/cygdrive/c/altera/10.1/nios2eds/bin/fs2/bin:/cygdrive/c/altera/10.1/nios2eds/bin/gnu/H-i686-mingw32/bin:$PATH" 

two times in these positions (arround the line 87 to 100). 

 

THANKS!:cool:
0 Kudos