Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17261 Discussions

Nios2 Command Shell doesn't execute scripts

Altera_Forum
Honored Contributor II
1,820 Views

Hi 

 

I'm using Altera Nios2 Command Shell [GCC4],Version 13.1 Build 162 on a Windows 7, 64 bit system. 

 

When I try to execute any command in the shell (e.g. elf2flash or sof2flash), the shell just seems to ignore it. There is no message like "unknown command" or similar, the shell just jumps to a new line and shows the prompt again. 

Several colleagues at work experience the same behavior even after a completely new installation of all the tools. 

 

What could be the problem? 

 

All other Altera tools work fine, I'm able to build my hardware and run Nios from Eclipse. 

 

Thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
967 Views

Hi 

 

Try this command before sof2flash 

 

export QUARTUS_BINDIR=${QUARTUS_ROOTDIR}/bin 

 

 

Best regards 

Jens
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

Hi 

 

Thank you very much for this hint, it works now! 

Maybe one more thing: It seems I need to execute the export-command every time I restart the shell. Is there any startup-script or init-file where I can add the export command so that the shell automatically executes it? 

Thanks and best regards, 

Lukas
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

Hi Lukas 

 

you could try to put this command in the shell script (nios2_command_shell.sh) which is called from Nios II Command Shell.bat in the nios2eds directory. The shell script has a section "Setup Nios2eds (GCC 4)". Try to put in here. Tell me if it works or not :) 

 

Jens
0 Kudos
Reply