Forum Discussion
Altera_Forum
Honored Contributor
16 years agoassembly language in the nios ii ide
Hi does the nios ii ide support assemble language? why does my assemble codes occur errors? my setup project proceed as follows: 1 Start the Nios II IDE. (Start->All Programs->Altera->...
Altera_Forum
Honored Contributor
15 years ago[SOLVED] here's how I fixed the problem.
I copied the compilation command from monitor program in info & Errors window and pasted in nios2 command shell and it compiled the program with no error. Now my program works but 1 problem still remains; In the compilation command there's a option -mno-cache-volatile. nios2 Command shell complains that this option is not known so I have to remove it. here's the full command: nios2-elf-gcc -g -O1 -ffunction-sections -fverbose-asm -fno-inline -mno-cache-volatile -mno-hw-mulx -mhw-mul -mhw-div -Ic:/altera/91sp2/nios2eds/components/altera_nios2/HAL/inc -DSYSTEM_BUS_WIDTH=32 -DALT_SINGLE_THREADED -D_JTAG_UART_BASE=0x10001000 -Wl,--defsym -Wl,nasys_stack_top=0x800000 -Wl,--defsym -Wl,nasys_program_mem=0x1000 -Wl,--defsym -Wl,nasys_data_mem=0x10000 -Wl,--section-start -Wl,.exceptions=0x20 -Wl,--section-start -Wl,.reset=0x0 -Wl,--script=c:/altera/91sp2/quartus/../University_Program/Monitor_Program/build/nios_cpp_build.ld -o "C:/Documents and Settings/user/Desktop/test1/main.elf" "C:/Documents and Settings/user/Desktop/test1/main.c" "C:/Documents and Settings/user/Desktop/test1/playback.s" c:/altera/91sp2/quartus/../University_Program/Monitor_Program/lib/jtag_uart.c Thanks