Altera_Forum
Honored Contributor
20 years agohow to assebler compile and download
I am recently trying to do the pure assembly programming for Nios II. I found from website that there is a tool call Debug Client is tailored for DE2 board for this purpose. However I am using the UP3 board which is not provided such kind of tool. I have tried to do it in Nios II IDE just like I did c programming before, but the only avaiable project type is c/c++ application. My assembly source file can not be compiled properly in that project. No matter what the source code is, the compiler always show the error message as below,
bj/aaa.o(.text+0x0): In function `_start': : multiple definition of `_start' D:/Design/Nios2Flash/software/asm_syslib/Debug/crt0.o(.text+0x0):/cygdrive/c/Altera/NioII/components/altera_nios2/HAL/src/crt0.S:236: first defined here D:/Design/Nios2Flash/software/asm_syslib/Debug/libasm_syslib.a(alt_main.o)(.text+0x60): In function `alt_main': /cygdrive/c/Altera/NioII/components/altera_hal/HAL/src/alt_main.c:149: undefined reference to `main' collect2: ld returned 1 exit status make: *** [asm.elf] Error 1 Could anyone give a proper solution for the assembly programming on UP3 board please? Thanks a million!!!