Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21607 Discussions

Altera Monitor Program Compile Error

Altera_Forum
Honored Contributor II
2,475 Views

Alright, before I start with my problem, here's every bit of information needed about the setup I'm working with: 

 

 

I'm using the Cyclone II FPGA Starter Development Board (Cyclone II EP2C20F484C7N FPGA). 

 

 

For my University course, we're using this board. We have the software needed on our lab computers, but it is recommended (and desired) to install the Altera software on our computers. 

 

 

I first installed the Quartus II Web Edition Software. 

I made sure it installed Quartus II Web Edition and NIOS II. They installed into my directory C:\altera\12.1 

I then installed the Altera Monitor Program from this link (part of the University Program Installer) 

 

 

Everything installed correctly, and I start up Altera Monitor Program. These are the steps I took to create a new project (exactly what we need to do in my class): 

File > New Project (place file wherever, preferably somewhere without spaces in the file path) 

Selecting a System: DE1 Basic Computer 

Program Type: Assembly Program with the "Getting Started" sample program 

Source files: C:\Users\zschl_000\Documents\getting_started.s (Start symbol: _start) 

My driver is correctly installed and the Host Connection is USB-Blaster [USB-0], and all settings default. 

Defauly RAM options on the next screen 

 

 

The "Download System - Prompt" now pops us, asking if I would like to download the system associated with the project to the board. I press "Yes", and it is installed successfully. 

 

 

My next step is now to "Compile and Load", which I press. This is where the error comes. Here's the error: 

 

 

Compiling source files...nios2-elf-as --gstabs -I C:/altera/12.1/quartus/../nios2eds/components/altera_nios2/sdk/inc -I C:/Users/zschl_000/Documents C:/Users/zschl_000/Documents/getting_started.s -o C:/Users/zschl_000/Documents/getting_started.s.o cygwin warning: MS-DOS style path detected: C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh Preferred POSIX equivalent is: /cygdrive/c/altera/12.1/University_Program/Monitor_Program/bin/up_nios2_command_shell.sh CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http :/ / cygwin . com /cygwin-ug-net/using . html#using-pathnames C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 16: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 17: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 22: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 62: syntax error near unexpected token `$'{\r'' C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 62: `env_var_delete () { ' /usr/bin/bash: nios2-elf-as: command not found Linking... nios2-elf-ld --defsym nasys_program_mem=0x0 --defsym nasys_data_mem=0x0 --section-start .exceptions=0x20 --section-start .reset=0x0 -e _start -u _start --script C:/altera/12.1/University_Program/Monitor_Program/build/nios_as_build.ld -g -o C:/Users/zschl_000/Documents/getting_started.elf C:/Users/zschl_000/Documents/getting_started.s.o cygwin warning: MS-DOS style path detected: C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh Preferred POSIX equivalent is: /cygdrive/c/altera/12.1/University_Program/Monitor_Program/bin/up_nios2_command_shell.sh CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http :/ / cygwin . com /cygwin-ug-net/using . html#using-pathnames C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 16: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 17: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 22: $'\r': command not found C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 62: syntax error near unexpected token `$'{\r'' C:/altera/12.1/quartus/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh: line 62: `env_var_delete () { ' /usr/bin/bash: nios2-elf-ld: command not found Compilation stopped.  

 

 

I've searched and searched for two days now trying to find something to fix this. I've also tried installing this on another computer, and get the exact same error. I'm really not sure what to do, and I desperately need to solve this. If anyone has any bit of advice to fix this, it would be much appreciated.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,283 Views

Hi Zeth, 

did you find an answer to this problem? technically, i've same error with other file missing and I can't find any way to get over it.  

could you please share with us any progress
0 Kudos
Altera_Forum
Honored Contributor II
1,283 Views

It might be that the shell is trying to treat a program binary the the kernel (cygwin in this case) can't execute as if it were a shell script. 

 

I'd look at the up_nios2_command_shell.sh script first - might be informative.
0 Kudos
Reply