Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Altera Monitor Program Compile Error

$
0
0
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:


Code:

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.

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>