Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Nios2 Command Shell doesn't execute scripts

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!

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    Try this command before sof2flash

    export QUARTUS_BINDIR=${QUARTUS_ROOTDIR}/bin

    Best regards

    Jens
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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