Forum Discussion
13 Replies
- Altera_Forum
Honored Contributor
Do you get this in the IDE? It looks like a bad path setting. Maybe reinstalling the Nios kit will fix the problem.
Or do you have a space in your project path? In that case remove it. - Altera_Forum
Honored Contributor
@grit,
1) did you install NIOS IDE ? 2) did you install NIOS IDE in a path that does not contain blank characters or foreign language characters (such as Chinese or so...)? A path such as "C:\Program Files\" is not a good place to have NIOS IDE installed as cygwin does not deal with these characters well. 3) do you have an other cygwin installation running? e.g. cygwin as such or cygwin from the Xilinx EDK? - Altera_Forum
Honored Contributor
let me try reinstall to another path without space~ thx!
- Altera_Forum
Honored Contributor
--- Quote Start --- Do you get this in the IDE? It looks like a bad path setting. Maybe reinstalling the Nios kit will fix the problem. Or do you have a space in your project path? In that case remove it. --- Quote End --- let me try reinstall to another path without space~ thx! - Altera_Forum
Honored Contributor
--- Quote Start --- @grit, 1) did you install NIOS IDE ? 2) did you install NIOS IDE in a path that does not contain blank characters or foreign language characters (such as Chinese or so...)? A path such as "C:\Program Files\" is not a good place to have NIOS IDE installed as cygwin does not deal with these characters well. 3) do you have an other cygwin installation running? e.g. cygwin as such or cygwin from the Xilinx EDK? --- Quote End --- 1) yes 2) maybe this is the problem.. let me try to reinstall the NIOS IDE to another path without space 3) sorry that i don know what cygwin is~ probably it is the second situation..thanks a lot! let me try re-install - Altera_Forum
Honored Contributor
Hello, i have re-installed the NIOS II EDS to another path without any blank in it.. but still got the following error message when I tried to compile the c file:
nios2-elf-gcc -g -O1 -ffunction-sections -fverbose-asm -fno-inline -mno-cache-volatile -mno-hw-mulx -mno-hw-mul -mno-hw-div -ID:/FYP_extra/nios2eds/components/altera_nios2/HAL/inc -DSYSTEM_BUS_WIDTH=32 -DALT_SINGLE_THREADED -D_JTAG_UART_BASE=0x00003020 -Wl,--defsym -Wl,nasys_stack_top=0x2000 -Wl,--defsym -Wl,nasys_program_mem=0x1000 -Wl,--defsym -Wl,nasys_data_mem=0x1000 -Wl,--section-start -Wl,.exceptions=0x1020 -Wl,--section-start -Wl,.reset=0x1000 -Wl,--script=D:/FYP_extra/nios2eds/bin/monitor/build/nios_cpp_build.ld -o D:/FYP_extra/sopc_builder_tutorial/app_software/lights.elf D:/FYP_extra/sopc_builder_tutorial/app_software/lights.c D:/FYP_extra/nios2eds/bin/monitor/lib/jtag_uart.c /usr/bin/bash: e:/program: No such file or directory /usr/bin/bash: nios2-elf-gcc: command not found ELF generated at D:\FYP_extra\sopc_builder_tutorial\app_software\lights.elf. nios2-elf-objcopy -O srec D:/FYP_extra/sopc_builder_tutorial/app_software/lights.elf D:/FYP_extra/sopc_builder_tutorial/app_software/lights.srec /usr/bin/bash: e:/program: No such file or directory /usr/bin/bash: nios2-elf-objcopy: command not found Do i also need to re-install Quartus II to another path without space? thank you =) - Altera_Forum
Honored Contributor
those binaries (nios2-elf*) are located in the Nios EDS install (rather than Quaruts), so i'm not sure why they aren't found. try opening a Nios Command Shell and type nios2-elf-gcc and see if the command is found.
- Altera_Forum
Honored Contributor
Hi Grit,
Some suggestions: 1) If you only reinstalled Nios IDE you could try to manually add the path to your Nios IDE binaries to the "System Environment Variable" "Path". E.g. if your Nios II IDE is installed in: C:\altera\90\nios2eds your NIOS II IDE executables are located in: C:\altera\90\nios2eds\bin Therefore add "C:\altera\90\nios2eds\bin;" in front of your "Path" "System Environment Variable". 2) Quartus normally does not pose any problems when having blank or foreign language characters in paths. Nios IDE however does. Normally Nios IDE is installed in the same directory as Quartus. For example if you have Quartus 9.0 installed under the directory "altera" on your "C:" drive, than all Altera software is installed under: C:\altera\90 Quartus is then installed under: C:\altera\90\quartus Nios IDE is than installed under: C:\altera\90\nios2eds If Quartus is installed under a directory with "blanks" e.g. C:\Program Files\altera\90\quartus then Nios IDE will also be installed under the same main directory: C:\Program Files\altera\90\nios2eds This path has a blank... 3) When reinstalling software to other locations, verify that the System Environment Variable QUARTUS_ROOTDIR points to your Quartus installation directory 4)If the previous things do not help you could consider reinstalling Quartus and Nios II IDE again from scratch. But now in a path without blanks. Hope this helps... - Altera_Forum
Honored Contributor
--- Quote Start --- those binaries (nios2-elf*) are located in the Nios EDS install (rather than Quaruts), so i'm not sure why they aren't found. try opening a Nios Command Shell and type nios2-elf-gcc and see if the command is found. --- Quote End --- hello, this error disappeared after I re-install the quartus II 9.0 and Nios II 9.0SP2 IDE to another correct path, but new error msg appear as shown in my new thread: nios2-elf-gcc -g -o1 -ffunction-sections -fverbose-asm -fno-inline -mno-cache-volatile -mno-hw-mulx -mno-hw-mul -mno-hw-div -id:/fyp_extra/nios2eds/components/altera_nios2/hal/inc -dsystem_bus_width=32 -dalt_single_threaded -d_jtag_uart_base=0x00003020 -wl,--defsym -wl,nasys_stack_top=0x2000 -wl,--defsym -wl,nasys_program_mem=0x1000 -wl,--defsym -wl,nasys_data_mem=0x1000 -wl,--section-start -wl,.exceptions=0x1020 -wl,--section-start -wl,.reset=0x1000 -wl,--script=d:/fyp_extra/nios2eds/bin/monitor/build/nios_cpp_build.ld -o d:/fyp_extra/sopc_builder_tutorial/app_software/lights.elf d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c d:/fyp_extra/nios2eds/bin/monitor/lib/jtag_uart.cd:/fyp_extra/sopc_builder_tutorial/app_software/lights.c: in function `main':
d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c:4: warning: return type of 'main' is not `int'
d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c:6:2: warning: no newline at end of file
elf generated at d:\fyp_extra\sopc_builder_tutorial\app_software\lights.elf.
nios2-elf-objcopy -o srec d:/fyp_extra/sopc_builder_tutorial/app_software/lights.elf d:/fyp_extra/sopc_builder_tutorial/app_software/lights.srec
srec generated at d:\fyp_extra\sopc_builder_tutorial\app_software\lights.srec.
using cable "usb-blaster [usb-0]", device 1, instance 0x00
resetting and pausing target processor: failed
leaving target processor paused
nios2-elf-gcc -g -o1 -ffunction-sections -fverbose-asm -fno-inline -mno-cache-volatile -mno-hw-mulx -mno-hw-mul -mno-hw-div -id:/fyp_extra/nios2eds/components/altera_nios2/hal/inc -dsystem_bus_width=32 -dalt_single_threaded -d_jtag_uart_base=0x00003020 -wl,--defsym -wl,nasys_stack_top=0x2000 -wl,--defsym -wl,nasys_program_mem=0x1000 -wl,--defsym -wl,nasys_data_mem=0x1000 -wl,--section-start -wl,.exceptions=0x1020 -wl,--section-start -wl,.reset=0x1000 -wl,--script=d:/fyp_extra/nios2eds/bin/monitor/build/nios_cpp_build.ld -o d:/fyp_extra/sopc_builder_tutorial/app_software/lights.elf d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c d:/fyp_extra/nios2eds/bin/monitor/lib/jtag_uart.c
d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c: in function `main':
d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c:4: warning: return type of 'main' is not `int'
d:/fyp_extra/sopc_builder_tutorial/app_software/lights.c:6:2: warning: no newline at end of file
elf generated at d:\fyp_extra\sopc_builder_tutorial\app_software\lights.elf.
nios2-elf-objcopy -o srec d:/fyp_extra/sopc_builder_tutorial/app_software/lights.elf d:/fyp_extra/sopc_builder_tutorial/app_software/lights.srec
srec generated at d:\fyp_extra\sopc_builder_tutorial\app_software\lights.srec.
using cable "usb-blaster [usb-0]", device 1, instance 0x00
resetting and pausing target processor: failed
leaving target processor paused
what can i do? thank you
- Altera_Forum
Honored Contributor
Hi grit,
did you first download your Nios hardware (.sof file) in the FPGA before starting the Altera Monitor Program?