Altera_Forum
Honored Contributor
16 years agoAltera Monitor Program compile errors
I have followed the suggestion, re-installing my NIOS II EDS and Quartus II 9.0 to another path which contains no space. Then I tried to compile and load the c file again, I got the following new errors...please help have a look at it~ i am getting crazy~~
p.s. I am trying to build a simple sopc following the tutorial document in cyclone II disk; I am using a different software version (9.0) with the one used in the tutorial (5.0), does this matter? it is claimed in the tutorial that this doesn't matter though. Thank you~ 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