Forum Discussion

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

Building design not from IDE?

Hello!

I want to build design by some .bat file or from command line.

Can I make it ? Or it possible only from IDE?

I'm working in WINXP.

If someone have example how I can do it, please write here.

Thanks.

6 Replies

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

    Create the project from the IDE (it is possible from the command line, but I've never done it). Then just type make in the release or debug directory

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

    If you've built the design once from the IDE then you should open up the Nios II shell, change to the Debug or Release directory and type `make -s`.

    If you want to do everything without the IDE then you'll need to use nios2-create-* to create the project and then nios2-build-project to build the ELF file from there. There are command line tools to download and debug from the command line available too.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can build projects that you have created from the IDE by running "make" from the command. To do this, open an SDK shell, change into the Debug or Release directory of your application project then run "make".

    If you also want to create a project from the command line, you can use the tools described in the "Altera Command-Line tools" section of Chaper 11 of the Nios II Software Developer's Handbook.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you are going to be running this alot I recommend scripting your commands (if you create a file with a ".sh" extension, you can copy your command lines into it and batch the process typing "bash <filename.sh>" I do this whenever I need to build a lot of projects, download hardware/code, and run a terminal at the same time.